37 lines
955 B
JSON
37 lines
955 B
JSON
{
|
|
"env": {
|
|
"node": true,
|
|
"commonjs": true,
|
|
"es6": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020,
|
|
"ecmaFeatures": {
|
|
"jsx": true,
|
|
"experimentalObjectRestSpread": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
"extends": ["eslint:recommended", "prettier", "plugin:import/recommended"],
|
|
"ignorePatterns": ["/font-src/glyphs", "/font-src/meta", "/font-src/otl"],
|
|
"rules": {
|
|
"semi": ["error", "always"],
|
|
"no-var": "error",
|
|
"no-console": 0,
|
|
"no-constant-condition": ["error", { "checkLoops": false }],
|
|
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
|
"no-unused-vars": ["off"],
|
|
"complexity": ["warn", 16],
|
|
|
|
"import/newline-after-import": ["error", { "count": 1 }],
|
|
"import/no-unresolved": "off",
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
|
|
"newlines-between": "always",
|
|
"alphabetize": { "order": "asc", "caseInsensitive": true }
|
|
}
|
|
]
|
|
}
|
|
}
|