@updater/eslint-plugin
Advanced tools
Comparing version 0.0.7 to 0.0.8
52
index.js
@@ -5,54 +5,4 @@ const services = require('./services') | ||
configs: { | ||
services: { | ||
env: { | ||
node: true, | ||
es6: true | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 8, | ||
ecmaFeatures: { | ||
experimentalObjectRestSpread: true | ||
} | ||
}, | ||
extends: 'eslint:recommended', | ||
// https://github.com/prettier/eslint-plugin-prettier | ||
plugins: ['prettier', 'prefer-object-spread'], // Runs Prettier as an ESLint rule and reports differences as individual ESLint issues. | ||
rules: { | ||
'prettier/prettier': ['error', { singleQuote: true, semi: false }], | ||
'prefer-object-spread/prefer-object-spread': 'error', | ||
// Rules not in 'eslint:recommended' | ||
eqeqeq: ['error', 'smart'], | ||
'no-useless-return': 'error', | ||
'valid-jsdoc': [ | ||
'warn', | ||
{ | ||
requireParamDescription: false, | ||
requireReturn: false, | ||
preferType: { | ||
Boolean: 'boolean', | ||
Number: 'number', | ||
object: 'Object', | ||
String: 'string' | ||
}, | ||
matchDescription: '.+', | ||
requireReturnDescription: false | ||
} | ||
], | ||
'no-useless-concat': 'error', | ||
// 'func-style': ['error', 'declaration'], | ||
// Node and ES6+ rules | ||
'global-require': 'error', | ||
'prefer-arrow-callback': 'error', | ||
'arrow-body-style': ['error', 'as-needed'], | ||
'no-useless-constructor': 'error', | ||
'no-var': 'error', | ||
'object-shorthand': ['error', 'always'], | ||
'prefer-const': 'error', | ||
'prefer-destructuring': ['error', { object: true, array: true }], | ||
'prefer-template': 'error', | ||
'require-await': 'error', | ||
'no-return-await': 'error' | ||
} | ||
} | ||
services | ||
} | ||
} |
{ | ||
"name": "@updater/eslint-plugin", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "ESLint rules for JavaScript at Updater", | ||
"keywords": ["eslint", "eslintplugin", "eslint-plugin"], | ||
"author": "David Michael", | ||
"peerDependencies": { | ||
"eslint": "~3.16.1", | ||
"prettier": "^1.8.2" | ||
}, | ||
"peerDependencies": {}, | ||
"dependencies": { | ||
"eslint-plugin-prefer-object-spread": "^1.2.1", | ||
"eslint-plugin-prettier": "^2.3.1" | ||
"eslint-plugin-prettier": "^2.3.1", | ||
"prettier": "^1.8.2", | ||
"eslint": "~3.16.1" | ||
}, | ||
"license": "ISC" | ||
} |
103504
5
57
+ Addedeslint@~3.16.1
+ Addedprettier@^1.8.2