mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
91dfd0cbf7
no issue - drop `jshint`, `jscs`, and `ember-suave` dependencies - remove `grunt` related linting dependencies and tasks - remove linting build from Travis so that linting can be performed as part of the normal test suite (refs TryGhost/Ghost#7427) - add `ember-cli-eslint` and `eslint-plugin-ember-suave` dependencies - configure `eslint` to match our previous coding style - update config to run eslint tests as part of the normal test run - add `npm run lint` command to only run linter tests
30 lines
775 B
JavaScript
30 lines
775 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
ecmaVersion: 6,
|
|
sourceType: 'module'
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:ember-suave/recommended'
|
|
],
|
|
env: {
|
|
browser: true
|
|
},
|
|
rules: {
|
|
indent: ['error', 4],
|
|
'space-before-function-paren': ['error', {anonymous: 'ignore', named: 'never'}],
|
|
'object-curly-spacing': ['error', 'never'],
|
|
'array-bracket-spacing': ['error', 'never'],
|
|
'key-spacing': ['error', {mode: 'minimum'}],
|
|
'keyword-spacing': ['error', {overrides: {
|
|
'catch': {'after': true}
|
|
}}],
|
|
'ember-suave/require-access-in-comments': 'off'
|
|
},
|
|
globals: {
|
|
moment: false,
|
|
validator: false
|
|
}
|
|
};
|