-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
31 lines (31 loc) · 1.07 KB
/
.eslintrc.js
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
module.exports = {
extends: ["./node_modules/gts/", "prettier", "prettier/react"],
plugins: ["prettier"],
env: {
browser: true,
},
ignorePatterns: ["public/**/*", "models", "amplify/**/*", "*.md", "*.mdx"],
rules: {
"prettier/prettier": "error",
quotes: [2, "double", { avoidEscape: true, allowTemplateLiterals: true }],
"object-curly-spacing": [2, "always", { objectsInObjects: true, arraysInObjects: true }],
"no-empty-pattern": 0,
"node/no-unpublished-import": 0,
"node/no-extraneous-import": 0,
"max-len": [2, { code: 125, ignoreUrls: true, ignoreStrings: true, ignoreTemplateLiterals: true, ignoreComments: true }],
"no-unused-vars": ["warn", { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }],
"@typescript-eslint/no-unused-vars": ["warn", { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }],
},
overrides: [
{
files: ["aws-exports.js"],
extends: "./node_modules/gts/",
parserOptions: {
sourceType: "module",
},
rules: {
"node/no-unpublished-import": 0,
},
},
],
};