Skip to content

Commit 5d41155

Browse files
committed
add js module and eslint
1 parent 90ec0af commit 5d41155

6 files changed

Lines changed: 922 additions & 23 deletions

File tree

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
env: {
3+
es6: true,
4+
node: true,
5+
},
6+
plugins: ['prettier'],
7+
extends: ['eslint-config-airbnb-base', 'prettier'],
8+
rules: {
9+
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
10+
},
11+
};

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
package.json

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,10 @@ Follow this process if you'd like your work considered for inclusion in the proj
120120

121121
If you have permission to publish a new version apply the following steps, always on the `master` branch:
122122

123-
1. Add all new changes to [`CHANGELOG.md`](CHANGELOG.md) making sure to follow the existing format.
124-
2. Update the version number in [`index.css`](src/index.css).
125-
3. Run: `npm version <update-type> --force` where `<update-type>` is one of the semantic versioning release types: **patch**, **minor**, or **major** (see the README's [Versioning](README.md#versioning) section).
123+
1. Commit all your changes.
124+
2. Add all new changes to [`CHANGELOG.md`](CHANGELOG.md) making sure to follow the existing format.
125+
3. Update the version number in [`index.css`](src/index.css).
126+
4. Run: `npm version <update-type> --force` where `<update-type>` is one of the semantic versioning release types: **patch**, **minor**, or **major** (see the README's [Versioning](README.md#versioning) section).
126127

127128
### Step 3 breakdown
128129

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "backpack.css",
3-
"main": "lib/backpack.css",
3+
"main": "lib/index.js",
44
"version": "1.1.0",
55
"description": "A lightweight and somewhat opinionated CSS foundation that is best suited to applications 🎒.",
66
"keywords": [
@@ -26,6 +26,11 @@
2626
"author": "Chris Pearce <[email protected]>",
2727
"license": "MIT",
2828
"devDependencies": {
29+
"eslint": "^5.8.0",
30+
"eslint-config-airbnb-base": "^13.1.0",
31+
"eslint-config-prettier": "^3.1.0",
32+
"eslint-plugin-import": "^2.14.0",
33+
"eslint-plugin-prettier": "^3.0.0",
2934
"normalize.css": "^8.0.0",
3035
"postcss-cli": "^6.0.0",
3136
"postcss-import": "^12.0.0",

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// eslint-disable-next-line import/no-unresolved
2+
const backpackCSS = require('./backpack.css');
3+
4+
module.exports = backpackCSS;

0 commit comments

Comments
 (0)