Skip to content

Commit da0a79c

Browse files
authored
Merge pull request #53 from luizbaldi/improve-eslint-structure
Improve ESlint structure
2 parents b04e7fc + 36553f7 commit da0a79c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3004
-1931
lines changed

.eslintrc.js

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
module.exports = {
2-
"env": {
3-
"browser": true,
4-
"es6": true
5-
},
6-
"extends": "airbnb"
7-
};
2+
extends: "airbnb",
3+
parser: "babel-eslint",
4+
env: {
5+
browser: true,
6+
es6: true,
7+
jest: true
8+
},
9+
rules: {
10+
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
11+
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
12+
"jsx-a11y/label-has-associated-control": [ "error", {
13+
"required": {
14+
"some": [ "nesting", "id" ]
15+
}
16+
}],
17+
"jsx-a11y/label-has-associated-control": ["error", { assert: "either" } ],
18+
"jsx-a11y/label-has-for": 'off'
19+
}
20+
}

0 commit comments

Comments
 (0)