mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-08 11:47:38 +08:00
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: [
|
|
"plugin:react/recommended",
|
|
"airbnb",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
plugins: ["react", "@typescript-eslint"],
|
|
rules: {
|
|
quotes: 0,
|
|
camelcase: 0,
|
|
"class-methods-use-this": 0,
|
|
"no-continue": 0,
|
|
"no-param-reassign": 0,
|
|
"no-unused-vars": 0,
|
|
"no-bitwise": 0,
|
|
"no-underscore-dangle": 0,
|
|
"no-console": [1, { allow: ["warn", "error"] }],
|
|
"no-lonely-if": 0,
|
|
"import/no-extraneous-dependencies": 0,
|
|
"import/extensions": 0,
|
|
"import/no-unresolved": 0,
|
|
"import/prefer-default-export": 0,
|
|
"react/jsx-filename-extension": 0,
|
|
"react/jsx-props-no-spreading": 0,
|
|
"react/function-component-definition": [
|
|
2,
|
|
{
|
|
namedComponents: "arrow-function",
|
|
unnamedComponents: "arrow-function",
|
|
},
|
|
],
|
|
"@typescript-eslint/no-unused-vars": [2],
|
|
},
|
|
};
|