@conduitvc/airbnb
Advanced tools
Comparing version 2.0.2 to 3.0.0
71
index.js
@@ -9,38 +9,38 @@ const airbnb = require('@neutrinojs/airbnb'); | ||
const base = eslint({ flow, typescript }); | ||
const extensions = ['prettier/react']; | ||
const plugins = []; | ||
const rules = { | ||
// Enable anchors with react-router Link | ||
'jsx-a11y/anchor-is-valid': ['error', { | ||
components: ['Link'], | ||
specialLink: ['to'], | ||
}], | ||
'jsx-a11y/click-events-have-key-events': 'off', | ||
'jsx-a11y/label-has-for': 'off', | ||
'jsx-a11y/no-noninteractive-element-interactions': 'off', | ||
'jsx-a11y/no-static-element-interactions': 'off', | ||
'no-console': process.env.NODE_ENV === 'development' ? 'off' : 'error', | ||
// handled by prettier rules | ||
'react/default-props-match-prop-types': 'off', | ||
'react/jsx-closing-bracket-location': 'off', | ||
'react/jsx-handler-names': ['error', { | ||
eventHandlerPrefix: 'handle', | ||
eventHandlerPropPrefix: 'on', | ||
}], | ||
'react/jsx-indent': 'off', | ||
// styling choice which makes using redux in es6 style more difficult. | ||
'react/no-multi-comp': 'off', | ||
'react/prefer-stateless-function': 'off', | ||
// we have not annotated anything in prop-types | ||
'react/prop-types': 'off', | ||
'react/sort-comp': 'off', | ||
const baseConfig = { | ||
extends: ['prettier/react'], | ||
plugins: [], | ||
rules: { | ||
// Enable anchors with react-router Link | ||
'jsx-a11y/anchor-is-valid': ['error', { | ||
components: ['Link'], | ||
specialLink: ['to'], | ||
}], | ||
'jsx-a11y/click-events-have-key-events': 'off', | ||
'jsx-a11y/label-has-for': 'off', | ||
'jsx-a11y/no-noninteractive-element-interactions': 'off', | ||
'jsx-a11y/no-static-element-interactions': 'off', | ||
'no-console': process.env.NODE_ENV === 'development' ? 'off' : 'error', | ||
// handled by prettier rules | ||
'react/default-props-match-prop-types': 'off', | ||
'react/jsx-closing-bracket-location': 'off', | ||
'react/jsx-handler-names': ['error', { | ||
eventHandlerPrefix: 'handle', | ||
eventHandlerPropPrefix: 'on', | ||
}], | ||
'react/jsx-indent': 'off', | ||
// styling choice which makes using redux in es6 style more difficult. | ||
'react/no-multi-comp': 'off', | ||
'react/prefer-stateless-function': 'off', | ||
'react/sort-comp': 'off', | ||
}, | ||
settings: {}, | ||
}; | ||
const settings = {}; | ||
if (typescript) { | ||
rules['react/jsx-filename-extension'] = [ | ||
baseConfig.rules['react/jsx-filename-extension'] = [ | ||
'error', | ||
{ extensions: ['.tsx', '.ts', '.jsx', '.js'] } | ||
]; | ||
settings['import/resolver'] = { | ||
baseConfig.settings['import/resolver'] = { | ||
node: { | ||
@@ -50,12 +50,7 @@ extensions: TS_EXTENSIONS | ||
}; | ||
settings['import/extensions'] = TS_EXTENSIONS; | ||
baseConfig.settings['import/extensions'] = TS_EXTENSIONS; | ||
baseConfig.parser = 'typescript-eslint-parser'; | ||
} | ||
const airbnbDefaults = merge(base.eslint, { | ||
baseConfig: { | ||
extends: extensions, | ||
plugins, | ||
rules, | ||
}, | ||
}); | ||
const airbnbDefaults = merge(base.eslint, { baseConfig }); | ||
const options = { | ||
@@ -62,0 +57,0 @@ ...base, |
{ | ||
"name": "@conduitvc/airbnb", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"main": "index.js", | ||
@@ -12,3 +12,3 @@ "author": "Eli Perelman <eli@eliperelman.com>", | ||
"dependencies": { | ||
"@conduitvc/eslint": "^2.0.2", | ||
"@conduitvc/eslint": "^3.0.0", | ||
"@neutrinojs/airbnb": "^9.0.0-rc.0" | ||
@@ -20,3 +20,3 @@ }, | ||
}, | ||
"gitHead": "5cbd611e1f73e5b1e92b4e3805491a5ee7134fee" | ||
"gitHead": "66766906dd7d5f1fb8c0f9d12b6eda4b1c15eb50" | ||
} |
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
9421
56
+ Added@conduitvc/eslint@3.0.3(transitive)
+ Addedcipher-base@1.0.6(transitive)
+ Addedes-to-primitive@1.3.0(transitive)
+ Addedprettier@3.4.1(transitive)
+ Addedwhich-typed-array@1.1.16(transitive)
- Removed@conduitvc/eslint@2.0.2(transitive)
- Removedcipher-base@1.0.5(transitive)
- Removedes-to-primitive@1.2.1(transitive)
- Removedprettier@3.4.0(transitive)
- Removedwhich-typed-array@1.1.15(transitive)
Updated@conduitvc/eslint@^3.0.0