Read our style guide
$ yarn add @shelf/eslint-config --dev
import tsConfig from '@shelf/eslint-config/typescript';
export default [...tsConfig];
import feConfig from '@shelf/eslint-config/frontend';
export default [
...feConfig,
{
settings: {
react: {
version: '16.7.0',
},
},
rules: {
"react/prop-types": "warn"
}
}
];
import feTsConfig from '@shelf/eslint-config/frontend-typescript';
export default [
...feTsConfig,
{
settings: {
react: {
version: '16.7.0',
},
},
rules: {
"react/prop-types": "warn"
}
}
];
import feVueConfig from '@shelf/eslint-config/frontend-vue';
export default [
...feVueConfig,
{
rules: {
"no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
}
}
];
import feTsVueConfig from '@shelf/eslint-config/frontend-typescript-vue';
export default [
...feTsVueConfig,
{
rules: {
"@typescript-eslint/no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
}
}
];
$ yarn version
$ git push --tags
MIT © Shelf