forked from M3-Academy/m3-academy-template-vtexio
36 lines
870 B
JavaScript
36 lines
870 B
JavaScript
|
module.exports = {
|
||
|
env: {
|
||
|
browser: true,
|
||
|
es2021: true,
|
||
|
node: true,
|
||
|
},
|
||
|
extends: [
|
||
|
"eslint:recommended",
|
||
|
"plugin:react/recommended",
|
||
|
"plugin:@typescript-eslint/recommended",
|
||
|
],
|
||
|
settings: {
|
||
|
react: {
|
||
|
pragma: "React",
|
||
|
version: "detect",
|
||
|
},
|
||
|
},
|
||
|
parser: "@typescript-eslint/parser",
|
||
|
parserOptions: {
|
||
|
ecmaFeatures: {
|
||
|
jsx: true,
|
||
|
},
|
||
|
ecmaVersion: 12,
|
||
|
sourceType: "module",
|
||
|
},
|
||
|
plugins: ["react", "@typescript-eslint"],
|
||
|
rules: {
|
||
|
indent: ["error", 4],
|
||
|
"linebreak-style": ["error", "unix"],
|
||
|
quotes: ["error", "double"],
|
||
|
semi: ["error", "always"],
|
||
|
"@typescript-eslint/no-explicit-any": "off",
|
||
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||
|
},
|
||
|
};
|