lint
This commit is contained in:
parent
ea190fd121
commit
1b16cb9ac6
|
|
@ -0,0 +1,14 @@
|
||||||
|
# http://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
insert_final_newline = false
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
node_modules/
|
||||||
|
packages/react-live/dist/
|
||||||
|
website/build/
|
||||||
|
|
@ -0,0 +1,69 @@
|
||||||
|
{
|
||||||
|
"root": true,
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"plugins": ["prettier", "@typescript-eslint"],
|
||||||
|
"settings": {
|
||||||
|
"react": {
|
||||||
|
"version": "detect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"plugin:react/recommended",
|
||||||
|
"plugin:import/recommended",
|
||||||
|
"plugin:import/typescript"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"commonjs": true,
|
||||||
|
"es6": true,
|
||||||
|
"node": true,
|
||||||
|
"jest": true
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"expect": true
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 6,
|
||||||
|
"sourceType": "module",
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"jsx": true,
|
||||||
|
"generators": true,
|
||||||
|
"experimentalObjectRestSpread": true
|
||||||
|
},
|
||||||
|
"requireConfigFile": false
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"comma-dangle": "off",
|
||||||
|
"indent": "off",
|
||||||
|
"space-before-function-paren": "off",
|
||||||
|
"react/jsx-indent-props": "off",
|
||||||
|
"max-len": "off",
|
||||||
|
"no-magic-numbers": "off",
|
||||||
|
"func-style": "off",
|
||||||
|
"arrow-parens": "off",
|
||||||
|
"no-use-before-define": "off",
|
||||||
|
"no-undef": "off",
|
||||||
|
"react/jsx-filename-extension": "off",
|
||||||
|
"react/require-extension": "off",
|
||||||
|
"react/no-multi-comp": "off",
|
||||||
|
"react/prop-types": "warn",
|
||||||
|
"react/sort-comp": "warn",
|
||||||
|
"react/sort-prop-types": "warn",
|
||||||
|
"react/jsx-handler-names": "off",
|
||||||
|
"react/no-find-dom-node": "off",
|
||||||
|
"no-invalid-this": "off",
|
||||||
|
"complexity": "off",
|
||||||
|
"no-unused-vars": 0,
|
||||||
|
"import/no-unresolved": [2, { "ignore": ["polished", "next/document"] }],
|
||||||
|
"prefer-template": "off",
|
||||||
|
"filenames/match-regex": "off",
|
||||||
|
"react/react-in-jsx-scope": "off",
|
||||||
|
"max-params": ["error", 5],
|
||||||
|
"max-nested-callbacks": ["error", 5],
|
||||||
|
"prettier/prettier": "error",
|
||||||
|
"@typescript-eslint/no-unused-vars": ["error"],
|
||||||
|
"@typescript-eslint/no-var-requires": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue