mirror of
https://github.com/chakra-ui/chakra-ui.git
synced 2026-09-14 16:43:45 +08:00
7b6e66a15b
* refactor: component setup * refactor: component setup * chore: refactor tests * chore: cleanup * refactor: get typecheck working * chore: flatten package structure * refactor: packages * refactor: utilities and hooks * refactor: prefer granular imports * chore: get build working for packages * chore: remove redundant cra templates * refactor: move cli to packages * chore: move all things to packages * chore: ensure all builds work as expected * chore: save progress * chore: refactor more components * chore: refactor more components * chore: refactor more components * chore: get tests working * fix: remaining tests * chore: update tests * chore: update scripts * chore: update dev script * chore: rm plop * fix: stories and cleanup providers * refactor: packages * chore: update * chore: cleanup scripts * chore: update * fix: storybook build * chore: mv color-mode and system into react * chore: improve scripts * chore: updates * chore: cleanup changelog * docs: cleanup changelog * refactor: props docs scripts * fix: typecheck * fix: eslint * chore: udpate slack scripts * refactor: split layout compoents into folders
96 lines
2.5 KiB
Plaintext
96 lines
2.5 KiB
Plaintext
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 10
|
|
},
|
|
"extends": [
|
|
"plugin:import/recommended",
|
|
"plugin:import/typescript",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"airbnb-typescript",
|
|
"prettier"
|
|
],
|
|
"env": {
|
|
"es6": true,
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
},
|
|
"plugins": ["@typescript-eslint/eslint-plugin", "testing-library"],
|
|
"rules": {
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-use-before-define": "off",
|
|
"no-param-reassign": "off",
|
|
"no-console": "off",
|
|
"jsx-a11y/no-autofocus": "off",
|
|
"react/forbid-prop-types": "off",
|
|
"import/prefer-default-export": "off",
|
|
"import/export": "off",
|
|
"no-underscore-dangle": "off",
|
|
"no-shadow": "off",
|
|
"no-plusplus": "off",
|
|
"spaced-comment": "off",
|
|
"guard-for-in": "off",
|
|
"react/no-danger": "off",
|
|
"react/button-has-type": "off",
|
|
"react/no-unescaped-entities": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"operator-assignment": "off",
|
|
"prefer-destructuring": "off",
|
|
"react/no-children-prop": "off",
|
|
"consistent-return": "off",
|
|
"react/state-in-constructor": "off",
|
|
"no-restricted-syntax": "off",
|
|
"no-continue": "off",
|
|
"eqeqeq": "off",
|
|
"react/destructuring-assignment": "off",
|
|
"@typescript-eslint/dot-notation": "off",
|
|
"no-bitwise": "off",
|
|
"no-redeclare": "off",
|
|
"@typescript-eslint/naming-convention": "off",
|
|
"import/no-extraneous-dependencies": "off",
|
|
"@typescript-eslint/lines-between-class-members": "off",
|
|
"no-alert": "off",
|
|
"react/jsx-filename-extension": [
|
|
"error",
|
|
{ "extensions": [".js", ".tsx"] }
|
|
],
|
|
"react/jsx-props-no-spreading": "off",
|
|
"react/no-array-index-key": "off",
|
|
"react/require-default-props": "off",
|
|
"react/sort-prop-types": "error",
|
|
"react/prop-types": "off",
|
|
"@typescript-eslint/no-shadow": "off",
|
|
"react-hooks/exhaustive-deps": "error",
|
|
"import/no-named-as-default": "off",
|
|
"prefer-object-spread": "off",
|
|
"arrow-body-style": "off",
|
|
"react/sort-comp": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"packages/**/*.ts",
|
|
"packages/**/*.tsx",
|
|
"tooling/**/*/*.ts",
|
|
"scripts/**/*.ts"
|
|
],
|
|
"parserOptions": {
|
|
"project": ["tsconfig.json"]
|
|
}
|
|
},
|
|
{
|
|
"files": ["scripts/**/*.ts"],
|
|
"parserOptions": {
|
|
"project": ["scripts/tsconfig.json"]
|
|
}
|
|
}
|
|
]
|
|
}
|