@element-public/eslint-config
v1.0.0
Published
This package provides element-public's .eslintrc as an extensible shared config.
Downloads
1
Readme
eslint-config-element-public
This package provides element-public's .eslintrc
as an extensible shared config.
Getting Started
npm i --save-dev @element-public/eslint-config
Extended ESLint Config
Extend into a local project configuration file, and override as desired. Use the correct config extension if it is a basic JavaScript, Vue, or React application:
React Extension
// .eslintrc.js
const eslintConfigReact = require('@element-public/eslint-config/react/');
module.exports = {
...eslintReactConfig,
rules: {
// add additional rules here
}
};
Vue Extension
// .eslintrc.js
const eslintConfigVue = require('@element-public/eslint-config/vue/');
module.exports = {
...eslintVueConfig,
rules: {
// add additional rules here
}
};
Basic JavaScript Extension
// .eslintrc.js
const eslintConfig = require('@element-public/eslint-config/');
module.exports = {
...eslintConfig,
rules: {
// add additional rules here
}
};