mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Add root level eslintrc
This commit is contained in:
parent
efe9c502cf
commit
a3f1465da4
70
.eslintrc.json
Normal file
70
.eslintrc.json
Normal file
@ -0,0 +1,70 @@
|
||||
{
|
||||
"extends": "twipped/node-esm",
|
||||
"rules": {
|
||||
"import/first": "off",
|
||||
"import/no-dynamic-require": "off",
|
||||
"import/no-extraneous-dependencies": [ "error", {
|
||||
"devDependencies": [
|
||||
"test/**", // tape, common npm pattern
|
||||
"tests/**", // also common npm pattern
|
||||
"**/test/**", // tape, common npm pattern
|
||||
"**/tests/**", // also common npm pattern
|
||||
"scripts/**", // scripts
|
||||
"**/__tests__/**", // jest pattern
|
||||
"**/__mocks__/**", // jest pattern
|
||||
"**/test.{js,jsx}", // monorepos with a single test file
|
||||
"**/test-*.{js,jsx}", // monorepos with multiple top-level test files
|
||||
"test.{js,jsx}", // repos with a single test file
|
||||
"test-*.{js,jsx}", // repos with multiple top-level test files
|
||||
"**/*{.,_}{test,spec}.{js,jsx}", // tests where the extension or filename suffix denotes that it is a test
|
||||
"**/jest.config.js", // jest config
|
||||
"**/jest.setup.js", // jest setup
|
||||
"**/vue.config.js", // vue-cli config
|
||||
"**/webpack.config.js", // webpack config
|
||||
"**/webpack.config.*.js", // webpack config
|
||||
"**/rollup.config.js", // rollup config
|
||||
"**/rollup.config.*.js", // rollup config
|
||||
"**/gulpfile.js", // gulp config
|
||||
"**/gulpfile.*.js", // gulp config
|
||||
"**/Gruntfile{,.js}", // grunt config
|
||||
"**/protractor.conf.js", // protractor config
|
||||
"**/protractor.conf.*.js", // protractor config
|
||||
"**/karma.conf.js", // karma config
|
||||
"**/.eslintrc", // eslint config
|
||||
"**/.eslintrc.{js,json}", // eslint config
|
||||
"**/**.stories.js", // all storybook files
|
||||
"build/**",
|
||||
"js/$*"
|
||||
],
|
||||
"optionalDependencies": false
|
||||
} ]
|
||||
},
|
||||
"settings": {
|
||||
"import/resolver": {
|
||||
"node": { "extensions": [
|
||||
".js",
|
||||
".mjs",
|
||||
".cjs",
|
||||
".jsx",
|
||||
".json",
|
||||
".svg"
|
||||
] },
|
||||
"enhanced-resolve": { "extensions": [
|
||||
".js",
|
||||
".mjs",
|
||||
".cjs",
|
||||
".jsx",
|
||||
".json",
|
||||
".svg"
|
||||
] }
|
||||
},
|
||||
"import/extensions": [
|
||||
".js",
|
||||
".mjs",
|
||||
".cjs",
|
||||
".jsx",
|
||||
".json",
|
||||
".svg"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user