forked from ice-lab/icepkg
-
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.
refactor: π‘ move component-next repo to pkg-cli (ice-lab#291)
* refactor: π‘ move component-next repo to pkg-cli ci: π‘ pass ci fix: π test ci test: π ci test test: π pass ci fix: π test ci feat: πΈ testi ci test: π ci test test ci update temp remove link test ci upte ui test: π test * feat: πΈ plugin-docusarus should run in the end * docs: βοΈ update readme
- Loading branch information
Showing
90 changed files
with
15,916 additions
and
163 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
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,48 +1,9 @@ | ||
const { getESLintConfig } = require('@iceworks/spec'); | ||
|
||
const commonRules = { | ||
'react/jsx-filename-extension': [1, { 'extensions': ['.js', '.jsx', '.tsx'] }], | ||
'react/jsx-no-target-blank': [0], | ||
'prefer-object-spread': 0, | ||
'@typescript-eslint/array-type': 0, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'max-classes-per-file': 0, | ||
'class-methods-use-this': 0 | ||
}; | ||
|
||
const jsRules = getESLintConfig('react', { | ||
env: { | ||
jest: true | ||
}, | ||
rules: { | ||
...commonRules, | ||
}, | ||
}); | ||
|
||
|
||
const tsRules = getESLintConfig('react-ts', { | ||
env: { | ||
jest: true | ||
}, | ||
module.exports = getESLintConfig('common-ts', { | ||
rules: { | ||
...commonRules, | ||
'@typescript-eslint/ban-ts-ignore': 0, | ||
'@typescript-eslint/array-type': 0, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/explicit-member-accessibility': 0, | ||
'@typescript-eslint/no-parameter-properties': 0 | ||
'no-nested-ternary': 'off', | ||
'no-await-in-loop': 'off', | ||
'no-multi-assign': 'off', | ||
}, | ||
}); | ||
|
||
delete tsRules.root; | ||
|
||
module.exports = { | ||
...jsRules, | ||
overrides: [ | ||
{ | ||
...tsRules, | ||
files: ['**/*.ts', '**/*.tsx'], | ||
}, | ||
], | ||
}; |
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.