0.3.0 • Published 4 years ago

@smoozzy/eslint-config v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

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

ESLint