Skip to content

Commit fe26c36

Browse files
Added support for node 16, formatting and linting (antd) (#2935)
* Added support for node 16, formatting and linting - Regenerated the `package-lock.json` file with node-16 - Added the `cs-check`, `cs-format` and `lint` scripts along with `lint-staged` to the `package.json` file - Added `@babel/eslint-parser` and removed `babel-parser` - Ran `cs-format` over the `src` and `test` directories to fix the build - Updated `.eslintrc` to switch to using the `@babel/eslint-parser` with the necessary `parserOptions` * - Fix `package.json` formatting
1 parent 59d0715 commit fe26c36

File tree

36 files changed

+164018
-9697
lines changed

36 files changed

+164018
-9697
lines changed

packages/antd/.eslintrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@babel/eslint-parser",
3+
"parserOptions": {
4+
"babelOptions": {
5+
"presets": ["@babel/preset-react"]
6+
}
7+
},
38
"rules": {
49
"react/jsx-uses-react": 2,
510
"react/jsx-uses-vars": 2,

0 commit comments

Comments
 (0)