eslint-config-planet
Advanced tools
Comparing version 15.0.0 to 15.1.0
@@ -1,3 +0,3 @@ | ||
var React = require('react'); | ||
var ReactDOM = require('react-dom'); | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
@@ -4,0 +4,0 @@ var HelloMessage = React.createClass({ |
105
index.js
module.exports = { | ||
extends: [ | ||
'prettier' | ||
], | ||
plugins: [ | ||
'prettier' | ||
], | ||
extends: ['prettier'], | ||
plugins: ['prettier'], | ||
env: { | ||
@@ -13,50 +9,55 @@ node: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: '2017', | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
experimentalObjectRestSpread: true | ||
} | ||
}, | ||
rules: { | ||
'prettier/prettier': [ | ||
"error", {singleQuote: true, bracketSpacing: false} | ||
], | ||
'array-callback-return': "error", | ||
'block-scoped-var': "error", | ||
'curly': "error", | ||
'default-case': "error", | ||
'dot-notation': ["error", {allowPattern: '^[a-z]+(_[a-z]+)+$'}], | ||
'eqeqeq': "error", | ||
'no-case-declarations': "error", | ||
'no-cond-assign': "error", | ||
'no-console': "error", | ||
'no-control-regex': "error", | ||
'no-debugger': "error", | ||
'no-delete-var': "error", | ||
'no-dupe-args': "error", | ||
'no-dupe-keys': "error", | ||
'no-duplicate-case': "error", | ||
'no-empty': "error", | ||
'no-empty-character-class': "error", | ||
'no-eq-null': "error", | ||
'no-ex-assign': "error", | ||
'no-extra-boolean-cast': "error", | ||
'no-fallthrough': "error", | ||
'no-func-assign': "error", | ||
'no-inner-declarations': ["error", 'functions'], | ||
'no-invalid-regexp': "error", | ||
'no-irregular-whitespace': "error", | ||
'no-negated-in-lhs': "error", | ||
'no-obj-calls': "error", | ||
'no-octal': "error", | ||
'no-process-exit': "off", | ||
'no-redeclare': "error", | ||
'no-regex-spaces': "error", | ||
'no-sparse-arrays': "error", | ||
'no-undef': "error", | ||
'no-underscore-dangle': "off", | ||
'no-unexpected-multiline': "error", | ||
'no-unreachable': "error", | ||
'no-unsafe-finally': "error", | ||
'no-unused-vars': ["error", {vars: 'all', args: 'none'}], | ||
'no-use-before-define': ["error", 'nofunc'], | ||
'strict': "off", | ||
'use-isnan': "error", | ||
'valid-typeof': "error", | ||
'prefer-const': "error" | ||
'prettier/prettier': ['error', {singleQuote: true, bracketSpacing: false}], | ||
'array-callback-return': 'error', | ||
'block-scoped-var': 'error', | ||
curly: 'error', | ||
'default-case': 'error', | ||
'dot-notation': ['error', {allowPattern: '^[a-z]+(_[a-z]+)+$'}], | ||
eqeqeq: 'error', | ||
'no-case-declarations': 'error', | ||
'no-cond-assign': 'error', | ||
'no-console': 'error', | ||
'no-control-regex': 'error', | ||
'no-debugger': 'error', | ||
'no-delete-var': 'error', | ||
'no-dupe-args': 'error', | ||
'no-dupe-keys': 'error', | ||
'no-duplicate-case': 'error', | ||
'no-empty': 'error', | ||
'no-empty-character-class': 'error', | ||
'no-eq-null': 'error', | ||
'no-ex-assign': 'error', | ||
'no-extra-boolean-cast': 'error', | ||
'no-fallthrough': 'error', | ||
'no-func-assign': 'error', | ||
'no-inner-declarations': ['error', 'functions'], | ||
'no-invalid-regexp': 'error', | ||
'no-irregular-whitespace': 'error', | ||
'no-negated-in-lhs': 'error', | ||
'no-obj-calls': 'error', | ||
'no-octal': 'error', | ||
'no-process-exit': 'off', | ||
'no-redeclare': 'error', | ||
'no-regex-spaces': 'error', | ||
'no-sparse-arrays': 'error', | ||
'no-undef': 'error', | ||
'no-underscore-dangle': 'off', | ||
'no-unexpected-multiline': 'error', | ||
'no-unreachable': 'error', | ||
'no-unsafe-finally': 'error', | ||
'no-unused-vars': ['error', {vars: 'all', args: 'none'}], | ||
'no-use-before-define': ['error', 'nofunc'], | ||
strict: 'off', | ||
'use-isnan': 'error', | ||
'valid-typeof': 'error', | ||
'prefer-const': 'error' | ||
} | ||
}; |
{ | ||
"name": "eslint-config-planet", | ||
"version": "15.0.0", | ||
"version": "15.1.0", | ||
"description": "ESLint config for Planet projects", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "eslint examples", | ||
"lint": "eslint . examples", | ||
"test": "npm run check-es6 && npm run check-react && npm run lint", | ||
"check-es6": "eslint --print-config examples/es6/.eslintrc | eslint-config-prettier-check", | ||
"check-react": "eslint --print-config examples/react/.eslintrc | eslint-config-prettier-check", | ||
"fix-examples": "eslint --fix examples" | ||
"check-react": "eslint --print-config examples/react/.eslintrc | eslint-config-prettier-check" | ||
}, | ||
@@ -19,3 +18,3 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"eslint": "^4.5.0", | ||
"eslint": "^4.6.1", | ||
"eslint-plugin-react": "^7.3.0" | ||
@@ -27,6 +26,9 @@ }, | ||
"dependencies": { | ||
"eslint-config-prettier": "^2.3.0", | ||
"eslint-config-prettier": "^2.4.0", | ||
"eslint-plugin-prettier": "^2.2.0", | ||
"prettier": "^1.6.0" | ||
"prettier": "^1.6.1" | ||
}, | ||
"eslintConfig": { | ||
"extends": "./index.js" | ||
} | ||
} |
45
react.js
module.exports = { | ||
extends: [ | ||
'./index.js', | ||
'prettier/react' | ||
], | ||
plugins: [ | ||
'react' | ||
], | ||
extends: ['./index.js', 'prettier/react'], | ||
plugins: ['react'], | ||
parserOptions: { | ||
@@ -15,21 +10,21 @@ ecmaFeatures: { | ||
rules: { | ||
'react/jsx-boolean-value': "error", | ||
'react/jsx-key': "error", | ||
'react/jsx-no-duplicate-props': "error", | ||
'react/jsx-no-undef': "error", | ||
'react/jsx-sort-props': "off", | ||
'react/jsx-uses-react': "error", | ||
'react/jsx-uses-vars': "error", | ||
'react/no-array-index-key': "error", | ||
'react/no-children-prop': "error", | ||
'react/no-did-mount-set-state': "error", | ||
'react/no-did-update-set-state': "error", | ||
'react/no-direct-mutation-state': "error", | ||
'react/no-unescaped-entities': "error", | ||
'react/no-unknown-property': "error", | ||
'react/no-unused-prop-types': "error", | ||
'react/prop-types': "error", | ||
'react/react-in-jsx-scope': "error", | ||
'react/sort-prop-types': "off" | ||
'react/jsx-boolean-value': 'error', | ||
'react/jsx-key': 'error', | ||
'react/jsx-no-duplicate-props': 'error', | ||
'react/jsx-no-undef': 'error', | ||
'react/jsx-sort-props': 'off', | ||
'react/jsx-uses-react': 'error', | ||
'react/jsx-uses-vars': 'error', | ||
'react/no-array-index-key': 'error', | ||
'react/no-children-prop': 'error', | ||
'react/no-did-mount-set-state': 'error', | ||
'react/no-did-update-set-state': 'error', | ||
'react/no-direct-mutation-state': 'error', | ||
'react/no-unescaped-entities': 'error', | ||
'react/no-unknown-property': 'error', | ||
'react/no-unused-prop-types': 'error', | ||
'react/prop-types': 'error', | ||
'react/react-in-jsx-scope': 'error', | ||
'react/sort-prop-types': 'off' | ||
} | ||
}; |
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
9639
9
133
Updatedprettier@^1.6.1