Skip to content

Commit 289577a

Browse files
committed
chore: back of eslint with father plugin
1 parent ee92e92 commit 289577a

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
extends: [require.resolve('@umijs/fabric/dist/eslint')],
3+
rules: {
4+
'default-case': 0,
5+
'import/no-extraneous-dependencies': 0,
6+
'react-hooks/exhaustive-deps': 0,
7+
'react/no-find-dom-node': 0,
8+
'react/no-did-update-set-state': 0,
9+
'react/no-unused-state': 1,
10+
'react/sort-comp': 0,
11+
'jsx-a11y/label-has-for': 0,
12+
'jsx-a11y/label-has-associated-control': 0,
13+
},
14+
};

.fatherrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
plugins: ['@rc-component/father-plugin'],
5+
});

biome.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@
2626
"build": "dumi build",
2727
"compile": "father build",
2828
"coverage": "rc-test --coverage",
29-
"lint": "biome lint",
30-
"prepublishOnly": "npm run compile && np --yolo --no-publish",
29+
"lint": "eslint src/ docs/examples/ --ext .tsx,.ts,.jsx,.js",
30+
"prepublishOnly": "npm run compile",
3131
"start": "dumi dev",
3232
"test": "rc-test"
3333
},
3434
"dependencies": {
3535
"@babel/runtime": "^7.18.3"
3636
},
3737
"devDependencies": {
38-
"@biomejs/biome": "^1.9.4",
3938
"@rc-component/father-plugin": "^1.0.0",
4039
"@testing-library/jest-dom": "^5.16.4",
4140
"@testing-library/react": "^16.1.0",
@@ -46,6 +45,7 @@
4645
"antd": "^5.22.6",
4746
"cross-env": "^7.0.1",
4847
"dumi": "^2.1.0",
48+
"eslint": "^8.51.0",
4949
"father": "^4.0.0",
5050
"np": "^6.2.0",
5151
"rc-test": "^7.0.13",

0 commit comments

Comments
 (0)