Skip to content

Commit

Permalink
style: yarn lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian4res committed Jun 30, 2024
1 parent 1892be1 commit 12606f9
Showing 1 changed file with 82 additions and 113 deletions.
195 changes: 82 additions & 113 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,119 +1,88 @@
{
"ignorePatterns": [
"node_modules/*",
"dist/*",
"build/*"
],
"env": {
"browser": true,
"es2021": true,
"node": true
"ignorePatterns": ["node_modules/*", "dist/*", "build/*"],
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "import"],
"rules": {
"object-curly-spacing": ["error", "always"],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint",
"import"
"no-trailing-spaces": "error",
"no-mixed-spaces-and-tabs": "error",
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"no-undef": "off",
"comma-dangle": ["error", "never"],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"no-spaced-func": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"rules": {
"object-curly-spacing": ["error", "always"],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-trailing-spaces": "error",
"no-mixed-spaces-and-tabs": "error",
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-undef": "off",
"comma-dangle": [
"error",
"never"
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"no-spaced-func": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"max-len": [
"error",
{
"code": 200
}
],
"@typescript-eslint/no-empty-function": "off",
"indent": [
"error",
4
],
"space-in-parens": [
"error",
"never"
],
"no-multi-spaces": "error",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"template-curly-spacing": [
"error",
"never"
]
},
"overrides": [
{
"files": [
"*.js"
],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
"max-len": [
"error",
{
"code": 200
}
],
"settings": {
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use,
// default to "createReactClass"
"pragma": "React", // Pragma to use, default to "React"
"fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
"version": "detect", // React version. "detect" automatically picks the version you have installed.
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
// default to latest and warns if missing
// It will default to "detect" in the future
"flowVersion": "0.53" // Flow version
}
"@typescript-eslint/no-empty-function": "off",
"indent": ["error", 4],
"space-in-parens": ["error", "never"],
"no-multi-spaces": "error",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"template-curly-spacing": ["error", "never"]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"settings": {
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use,
// default to "createReactClass"
"pragma": "React", // Pragma to use, default to "React"
"fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
"version": "detect", // React version. "detect" automatically picks the version you have installed.
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
// default to latest and warns if missing
// It will default to "detect" in the future
"flowVersion": "0.53" // Flow version
}
}
}
}

0 comments on commit 12606f9

Please sign in to comment.