GenderDysphoria.fyi/.eslintrc.json
Jocelyn Badgley (Twipped) a3f1465da4 Add root level eslintrc
2022-10-23 10:49:43 -07:00

71 lines
2.2 KiB
JSON

{
"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"
]
}
}