@shelf/eslint-config
v4.2.1
Published
ESLint Config for Shelf Projects
Downloads
36,241
Maintainers
Readme
@shelf/eslint-config
Style Guide
Read our style guide
Install
$ yarn add @shelf/eslint-config --dev
Usage
Backend
import tsConfig from '@shelf/eslint-config/typescript';
export default [...tsConfig];
Frontend
JavaScript with React eslint.config.js
import feConfig from '@shelf/eslint-config/frontend';
export default [
...feConfig,
{
settings: {
react: {
version: '16.7.0',
},
},
rules: {
"react/prop-types": "warn"
}
}
];
TypeScript or TypeScript + Next eslint.config.js
import feTsConfig from '@shelf/eslint-config/frontend-typescript';
export default [
...feTsConfig,
{
settings: {
react: {
version: '16.7.0',
},
},
rules: {
"react/prop-types": "warn"
}
}
];
Vue eslint.config.js
import feVueConfig from '@shelf/eslint-config/frontend-vue';
export default [
...feVueConfig,
{
rules: {
"no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
}
}
];
Typescript with Vue eslint.config.js
import feTsVueConfig from '@shelf/eslint-config/frontend-typescript-vue';
export default [
...feTsVueConfig,
{
rules: {
"@typescript-eslint/no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
}
}
];
Publish
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
License
MIT © Shelf