Skip to content

Commit

Permalink
feat: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
fyangstudio committed Aug 12, 2021
1 parent 31a9805 commit 0b70061
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ const { getESLintConfig } = require('@iceworks/spec');

// getESLintConfig(rule: 'rax'|'react'|'vue', customConfig?);
module.exports = getESLintConfig('react-ts', {
parserOptions: {
project: [],
createDefaultProgram: false,
},
rules: {
'@typescript-eslint/dot-notation': 0,
'@typescript-eslint/restrict-plus-operands': 0,
'@typescript-eslint/member-delimiter-style': 1,
'max-len': 1,
'import/no-cycle': 1,
'@typescript-eslint/dot-notation': 1,
'@typescript-eslint/consistent-type-assertions': 1,
'@typescript-eslint/brace-style': 1,
'no-redeclare': 1,
},
});
});

0 comments on commit 0b70061

Please sign in to comment.