forked from ant-design/ant-design-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ts file error for eslint (ant-design#4336)
* fix ts file error for eslint * add format-imports script * sort all code * remove lint:ts * remove tslint * remove lint:ts * up layout * remove a empty test * rm tslint config * use umi config * prettier all code * use @umijs/fabric * [CodeFactor] Apply fixes to commit 69d4f9a [ci skip] [skip ci]
- Loading branch information
1 parent
98be9f1
commit 277ea60
Showing
53 changed files
with
435 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,12 @@ | ||
const fabric = require('@umijs/fabric'); | ||
|
||
module.exports = { | ||
parser: 'babel-eslint', | ||
extends: ['airbnb', 'prettier', 'plugin:compat/recommended'], | ||
env: { | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
mocha: true, | ||
jest: true, | ||
jasmine: true, | ||
...fabric.default, | ||
rules: { | ||
...fabric.default.rules, | ||
}, | ||
globals: { | ||
page: true, | ||
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true, | ||
}, | ||
rules: { | ||
'react/jsx-filename-extension': [1, { extensions: ['.js'] }], | ||
'react/jsx-wrap-multilines': 0, | ||
'react/prop-types': 0, | ||
'react/forbid-prop-types': 0, | ||
'react/jsx-one-expression-per-line': 0, | ||
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/'] }], | ||
'import/no-extraneous-dependencies': [ | ||
2, | ||
{ | ||
optionalDependencies: true, | ||
devDependencies: ['**/tests/**.js', '/mock/**/**.js', '**/**.test.js'], | ||
}, | ||
], | ||
'import/no-cycle': 0, | ||
'jsx-a11y/no-noninteractive-element-interactions': 0, | ||
'jsx-a11y/click-events-have-key-events': 0, | ||
'jsx-a11y/no-static-element-interactions': 0, | ||
'jsx-a11y/anchor-is-valid': 0, | ||
'linebreak-style': 0, | ||
}, | ||
settings: { | ||
// support import modules from TypeScript files in JavaScript files | ||
'import/resolver': { node: { extensions: ['.js', '.ts', '.tsx'] } }, | ||
polyfills: ['fetch', 'promises', 'url', 'object-assign'], | ||
page: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,5 @@ functions/* | |
|
||
# screenshot | ||
screenshot | ||
.firebase | ||
.firebase | ||
.eslintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,7 @@ docker | |
Dockerfile* | ||
.gitignore | ||
.prettierignore | ||
LICENSE | ||
LICENSE | ||
.eslintcache | ||
*.lock | ||
yarn-error.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const fabric = require('@umijs/fabric'); | ||
|
||
module.exports = { | ||
...fabric.prettier, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const fabric = require('@umijs/fabric'); | ||
|
||
module.exports = { | ||
...fabric.stylelint, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.