1 Star 1 Fork 1

coolphk/webpack5-mobx6-typescript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
shanghaitao 提交于 2020-06-17 16:09 . chore: update pakcage
module.exports = {
// Specifies the ESLint parser
parser: '@typescript-eslint/parser',
extends: [
// Uses the recommended rules from @eslint-plugin-react
'plugin:react/recommended',
// Uses the recommended rules from @typescript-eslint/eslint-plugin
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint'
],
parserOptions: {
// Allows for the parsing of modern ECMAScript features
ecmaVersion: 2018,
// Allows for the use of imports
sourceType: 'module',
ecmaFeatures: {
// Allows for the parsing of JSX
jsx: true
}
},
rules: {
'prettier/prettier': 'error',
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. '@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'prefer-const': 'error',
'no-var': 'error',
'comma-dangle': 'off',
'arrow-parens': 'off',
'no-multiple-empty-lines': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'react/prop-types': 'off',
'react/display-name': 'off'
},
settings: {
react: {
// Tells eslint-plugin-react to automatically detect the version of React to use
version: 'detect'
}
},
env: {
browser: true
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lphkasl/webpack5-mobx6-typescript.git
[email protected]:lphkasl/webpack5-mobx6-typescript.git
lphkasl
webpack5-mobx6-typescript
webpack5-mobx6-typescript
master

搜索帮助