0.3.0 • Published 4 years ago
@smoozzy/eslint-config v0.3.0
Smoozzy ESLint Config
Shareable config for Smoozzy projects
How to use
Install ESLint
npm install eslint @smoozzy/eslint-config
Create config .eslintrc.js
module.exports = {
root: true,
env: {
browser: true,
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
extends: [
'@smoozzy/eslint-config',
],
};
ESLint and Plugins
- ESLint (v5.0+)
- Jest (v23.0+)
- Jest Formatting (v1.0+)
- Vue (v5.0+)
Jest plugin
You can add Jest version explicitly to config file or the config tries to detect Jest version automatically
module.exports = {
// ...
settings: {
jest: {
version: 26,
},
},
};
Further Reading
ECMAScript features sets
- Speaking JavaScript by Axel Rauschmayer (ES5)
- Exploring ES6 by Axel Rauschmayer (ES6)
- ECMAScript 2016: the final feature set (ES7)
- ECMAScript 2017: the final feature set
- ECMAScript 2018: the final feature set
- ECMAScript 2019: the final feature set
- ECMAScript 2020: the final feature set
ESLint