Skip to content

Commit

Permalink
Infrastructure: Combine ESLint config at root
Browse files Browse the repository at this point in the history
Pull settings from child .eslintrc.json files into "overridess" section
at root.
  • Loading branch information
nschonni committed Nov 9, 2020
1 parent ffa58e3 commit 615d339
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
31 changes: 26 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,31 @@
"rules": {
"no-unused-vars": 0,
"no-undef": 0,
"no-restricted-properties": [2, {
"property": "findElements",
"message": "Please use t.context.queryElements()."
}],
"strict": [2, "global"]
}
},
"overrides": [
{
"files": "test/**/*.js",
"parserOptions": {
"ecmaVersion": 8
},
"extends": ["plugin:ava/recommended"],
"rules": {
"no-restricted-properties": [2, {
"property": "findElements",
"message": "Please use t.context.queryElements()."
}]
}
},
{
"files": "scripts/*.js",
"env": {
"node": true,
"es6": true
},
"rules": {
"no-console": 0
}
}
]
}
10 changes: 0 additions & 10 deletions scripts/.eslintrc.json

This file was deleted.

6 changes: 0 additions & 6 deletions test/.eslintrc.json

This file was deleted.

0 comments on commit 615d339

Please sign in to comment.