eslint-config-powel
Advanced tools
Comparing version 0.2.0 to 1.0.0
13
babel.js
@@ -8,16 +8,11 @@ 'use strict'; | ||
], | ||
ecmaFeatures: { | ||
'experimentalObjectRestSpread': true, | ||
'modules': true | ||
}, | ||
env: { | ||
'es6': true | ||
}, | ||
rules: { | ||
'prefer-const': 2, | ||
'babel/generator-star-spacing': [2, 'after'], | ||
'babel/object-curly-spacing': [1, 'always'], | ||
'babel/object-shorthand': [1, 'always'], | ||
'babel/arrow-parens': [1, 'as-needed'] | ||
'generator-star-spacing': 0, | ||
'object-shorthand': 0, | ||
'strict': [2, 'never'] | ||
} | ||
}; |
{ | ||
"name": "eslint-config-powel", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"description": "Powel ESLint configs", | ||
@@ -9,7 +9,11 @@ "main": "index.js", | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"eslint": "^3.x" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^1.10.3", | ||
"eslint-config-semistandard": "^5.0.0", | ||
"eslint-config-standard": "^4.4.0", | ||
"eslint-plugin-standard": "^1.3.1" | ||
"eslint": "^3.5.0", | ||
"eslint-config-semistandard": "^7.0.0", | ||
"eslint-config-standard": "^6.0.0", | ||
"eslint-plugin-promise": "^2.0.0", | ||
"eslint-plugin-standard": "^2.0.0" | ||
}, | ||
@@ -16,0 +20,0 @@ "scripts": { |
36
react.js
@@ -7,16 +7,21 @@ 'use strict'; | ||
], | ||
ecmaFeatures: { | ||
'jsx': true | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
rules: { | ||
'jsx-quotes': [2, 'prefer-double'], | ||
'react/display-name': 2, | ||
'react/jsx-boolean-value': [1, 'never'], | ||
'react/jsx-closing-bracket-location': [1, 'tag-aligned'], | ||
'react/jsx-boolean-value': [2, 'never'], | ||
'react/jsx-closing-bracket-location': [2, 'tag-aligned'], | ||
'react/jsx-curly-spacing': [2, 'never'], | ||
'react/jsx-equals-spacing': [2, 'never'], | ||
'react/jsx-first-prop-new-line': [2, 'multiline'], | ||
'react/jsx-indent': [2, 2], | ||
'react/jsx-indent-props': [2, 2], | ||
'react/jsx-max-props-per-line': [1, {'maximum': 2}], | ||
'react/jsx-no-duplicate-props': 2, | ||
'react/jsx-max-props-per-line': [1, { maximum: 3 }], | ||
'react/jsx-no-duplicate-props': [2, { ignoreCase: true }], | ||
'react/jsx-filename-extension': [2, { extensions: ['.js'] }], | ||
'react/jsx-no-literals': 1, | ||
@@ -26,16 +31,19 @@ 'react/jsx-no-undef': 2, | ||
'react/jsx-uses-vars': 2, | ||
'react/jsx-handler-names': 2, | ||
'react/jsx-wrap-multilines': 2, | ||
'react/jsx-space-before-closing': 2, | ||
'react/jsx-no-bind': 1, | ||
'react/no-danger': 1, | ||
'react/no-did-mount-set-state': 1, | ||
'react/no-did-update-set-state': 1, | ||
'react/no-multi-comp': 1, | ||
'react/no-set-state': 1, | ||
'react/jsx-no-bind': 1, | ||
'react/no-multi-comp': [2, { ignoreStateless: true }], | ||
'react/no-did-mount-set-state': 2, | ||
'react/no-did-update-set-state': 2, | ||
'react/no-direct-mutation-state': 2, | ||
'react/no-set-state': 0, | ||
'react/no-deprecated': 2, | ||
'react/no-unknown-property': 2, | ||
'react/prop-types': 0, | ||
'react/react-in-jsx-scope': 1, | ||
'react/require-extension': 2, | ||
'react/self-closing-comp': 2, | ||
'react/sort-comp': 1, | ||
'react/wrap-multilines': 2 | ||
'react/sort-comp': 1 | ||
} | ||
}; |
@@ -7,12 +7,16 @@ 'use strict'; | ||
var babelConfig = require('../babel'); | ||
var importConfig = require('../import'); | ||
assert.equal(config.env.node, true); | ||
assert.equal(config.env.es6, false); | ||
assert.deepEqual(config.extends, [ | ||
'eslint:recommended', | ||
'semistandard' | ||
]); | ||
assert.equal(config.env.browser, true); | ||
assert((reactConfig.plugins || []).indexOf('react') > -1); | ||
assert(reactConfig.ecmaFeatures.jsx); | ||
assert(reactConfig.rules['react/jsx-no-undef'], 2); | ||
assert(~reactConfig.plugins.indexOf('react')); | ||
assert(reactConfig.parserOptions.ecmaFeatures.jsx); | ||
assert(babelConfig.parser === 'babel-eslint'); | ||
assert(babelConfig.env.es6); | ||
assert(babelConfig.ecmaFeatures.modules); | ||
assert(~babelConfig.plugins.indexOf('babel')); | ||
assert(~importConfig.plugins.indexOf('import')); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4955
10
100
1
1
5