-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.eslintrc.base.js
More file actions
34 lines (33 loc) · 965 Bytes
/
.eslintrc.base.js
File metadata and controls
34 lines (33 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// @ts-check
/** @type {import("eslint").ESLint.ConfigData} **/
const esLintConfig = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
plugins: [
"@typescript-eslint",
"eslint-custom-rules",
"react-hooks",
"styled-components-a11y",
"eslint-plugin-import",
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
parser: "@typescript-eslint/parser",
project: ["./tsconfig.json"],
tsconfigRootDir: __dirname,
root: true,
},
ignorePatterns: ["node_modules/", "generated/", "dist/", "sourcemap/"],
settings: {
react: {
version: "detect", // Tells eslint-plugin-react to automatically detect the version of React to use
},
next: {
rootDir: "frontend",
},
},
}
module.exports = esLintConfig