2.1.3 • Published 10 months ago

@vervocity/eslint-config v2.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Vervocity JS Coding Standard

npm i --save-dev @vervocity/eslint-config

Create .eslintrc.js file.

module.exports = {
    'extends': [
        '@vervocity',
        // 'plugin:vue/vue3-recommended' // Vue 3.x
        // 'plugin:vue/recommended' // Vue 2.x
    ],
}
npx eslint "resources/js/**/*.{js,vue}"

Vue projects

Add vue/html-indent rule eslint configuration file.

module.exports = {
    'extends': [
        '@vervocity',
        // 'plugin:vue/vue3-recommended' // Vue 3.x
        // 'plugin:vue/recommended' // Vue 2.x
    ],
    'rules': {
        'vue/html-indent': [`error`, 4],
    },
}

React & React Native projects

module.exports = {
    'extends': [
        "@vervocity",
        "plugin:react/recommended"
    ],
    "rules": {
        "react/prop-types": ["warn", { "skipUndeclared": true }],
    },
}
2.1.3

10 months ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.0

2 years ago

1.0.0

4 years ago