Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-powel

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-powel - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

import.js

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": {

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc