-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ESLint and use new config format
Closes #412.
- Loading branch information
Showing
10 changed files
with
668 additions
and
701 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import domenicConfig from "@domenic/eslint-config"; | ||
import globals from "globals"; | ||
|
||
export default [ | ||
{ | ||
ignores: ["coverage/**/*"] | ||
}, | ||
{ | ||
files: ["**/*.js"], | ||
languageOptions: { | ||
sourceType: "commonjs", | ||
globals: globals.node | ||
} | ||
}, | ||
...domenicConfig, | ||
{ | ||
rules: { | ||
camelcase: ["error", { properties: "never" }] | ||
} | ||
}, | ||
{ | ||
files: ["__tests__/**/*.js"], | ||
languageOptions: { | ||
globals: globals.jest | ||
}, | ||
rules: { | ||
// Plays poorly with how we set up mocks. | ||
"no-loop-func": "off" | ||
} | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.