English/简体中文
The attack eslint config is a shareable config for JavaScript/Vue project.
Node, ESLint, babel-eslint, vue-eslint-parser, eslint-plugin-vue.
#npm
npm install eslint-config-attack --save-dev
#yarn
yarn add eslint-config-attack --dev
#npm
npm install eslint babel-eslint eslint-config-attack --save-dev
#yarn
yarn add eslint babel-eslint eslint-config-attack --dev
create an .eslintrc.js in the root dictionary of your project,then copy the following content into it:
module.exports = {
extends: [
'attack',
],
env: {
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
},
rules: {
}
};
#npm
npm install --save-dev eslint babel-eslint vue-eslint-parser eslint-plugin-vue eslint-config-attack
#yarn
yarn add eslint babel-eslint vue-eslint-parser eslint-plugin-vue eslint-config-attack --dev
create an .eslintrc.js in the root dictionary of your project,then copy the following content into it:
module.exports = {
extends: [
'attack',
'attack/vue',
],
env: {
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
},
rules: {
}
};
#npm
npm install --save-dev eslint babel-eslint eslint-plugin-react eslint-config-attack
#yarn
yarn add eslint babel-eslint eslint-plugin-react eslint-config-attack --dev
create an .eslintrc.js in the root dictionary of your project,then copy the following content into it:
module.exports = {
extends: [
'attack',
'attack/react',
],
env: {
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
},
rules: {
}
};