Socket
Socket
Sign inDemoInstall

@billogram/eslint-config

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@billogram/eslint-config - npm Package Compare versions

Comparing version 2.9.2 to 2.9.3

10

CHANGELOG.md

@@ -6,2 +6,12 @@ # Change Log

## [2.9.3](https://github.com/billogram/frontend-dev-tools/compare/@billogram/eslint-config@2.9.2...@billogram/eslint-config@2.9.3) (2021-01-15)
### Bug Fixes
* Only run flowtype rules for .js(x) files ([9a36475](https://github.com/billogram/frontend-dev-tools/commit/9a36475))
* Configure default options for flowtype/no-unused-expressions ([1c3189f](https://github.com/billogram/frontend-dev-tools/commit/1c3189f))
* Turn off deprecated rule flowtype/valid-syntax ([1ce4d7a](https://github.com/billogram/frontend-dev-tools/commit/1ce4d7a))
## [2.9.2](https://github.com/billogram/frontend-dev-tools/compare/@billogram/eslint-config@2.9.1...@billogram/eslint-config@2.9.2) (2021-01-10)

@@ -8,0 +18,0 @@

137

config/flowtype.js
module.exports = {
// Ignore Flowtypes rules for *.ts(x) files. There's probably a better way of doing this.
overrides: [{
files: [
'*.js',
'*.jsx',
],
rules: {
'flowtype/arrow-parens': ['warn', 'always'],
'flowtype/array-style-complex-type': ['warn', 'verbose'],
'flowtype/array-style-simple-type': ['warn', 'verbose'],
'flowtype/boolean-style': [
'error',
'boolean',
],
'flowtype/define-flow-type': 'warn',
'flowtype/delimiter-dangle': ['warn', 'always-multiline'],
'flowtype/generic-spacing': [
'error',
'never',
],
'flowtype/no-dupe-keys': ['warn'],
'flowtype/newline-after-flow-annotation': ['warn', 'never'],
'flowtype/no-existential-type': 'off',
'flowtype/no-flow-fix-me-comments': 'off',
'flowtype/no-mixed': 'off',
'flowtype/no-mutable-array': 'warn',
'flowtype/no-primitive-constructor-types': 'warn',
'flowtype/no-types-missing-file-annotation': ['warn'],
'flowtype/no-unused-expressions': ['warn', {
allowShortCircuit: false,
allowTaggedTemplates: false,
allowTernary: false,
}],
'flowtype/no-weak-types': 'off',
'flowtype/object-type-delimiter': ['warn', 'comma'],
// This rule should probably be on, but it might involve a lot of work.
'flowtype/require-compound-type-alias': 'off',
'flowtype/require-exact-type': 'off',
'flowtype/require-indexer-name': 'off',
'flowtype/require-inexact-type': 'off',
'flowtype/require-parameter-type': 'off',
// This rule should probably be on, but it might involve A LOT of work.
'flowtype/require-readonly-react-props': 'off',
'flowtype/require-return-type': 'off',
'flowtype/require-types-at-top': 'off',
'flowtype/require-valid-file-annotation': ['warn', 'never', {
annotationStyle: 'line',
}],
'flowtype/require-variable-type': 'off',
'flowtype/semi': ['warn', 'always'],
'flowtype/space-after-type-colon': [
'error',
'always',
],
'flowtype/space-before-generic-bracket': [
'error',
'never',
],
'flowtype/space-before-type-colon': [
'error',
'never',
],
'flowtype/sort-keys': ['warn', 'asc'],
'flowtype/spread-exact-type': 'off',
'flowtype/type-id-match': 'off',
'flowtype/type-import-style': 'off',
'flowtype/union-intersection-spacing': [
'error',
'always',
],
'flowtype/use-flow-type': 'warn',
'flowtype/valid-syntax': 'off',
},
}],
parser: 'babel-eslint',

@@ -6,65 +80,2 @@ plugins: [

],
rules: {
'flowtype/arrow-parens': ['warn', 'always'],
'flowtype/array-style-complex-type': ['warn', 'verbose'],
'flowtype/array-style-simple-type': ['warn', 'verbose'],
'flowtype/boolean-style': [
'error',
'boolean',
],
'flowtype/define-flow-type': 'warn',
'flowtype/delimiter-dangle': ['warn', 'always-multiline'],
'flowtype/generic-spacing': [
'error',
'never',
],
'flowtype/no-dupe-keys': ['warn'],
'flowtype/newline-after-flow-annotation': ['warn', 'never'],
'flowtype/no-existential-type': 'off',
'flowtype/no-flow-fix-me-comments': 'off',
'flowtype/no-mixed': 'off',
'flowtype/no-mutable-array': 'warn',
'flowtype/no-primitive-constructor-types': 'warn',
'flowtype/no-types-missing-file-annotation': ['warn'],
'flowtype/no-unused-expressions': 'warn',
'flowtype/no-weak-types': 'off',
'flowtype/object-type-delimiter': ['warn', 'comma'],
// This rule should probably be on, but it might involve a lot of work.
'flowtype/require-compound-type-alias': 'off',
'flowtype/require-exact-type': 'off',
'flowtype/require-indexer-name': 'off',
'flowtype/require-inexact-type': 'off',
'flowtype/require-parameter-type': 'off',
// This rule should probably be on, but it might involve A LOT of work.
'flowtype/require-readonly-react-props': 'off',
'flowtype/require-return-type': 'off',
'flowtype/require-types-at-top': 'off',
'flowtype/require-valid-file-annotation': ['warn', 'never', {
annotationStyle: 'line',
}],
'flowtype/require-variable-type': 'off',
'flowtype/semi': ['warn', 'always'],
'flowtype/space-after-type-colon': [
'error',
'always',
],
'flowtype/space-before-generic-bracket': [
'error',
'never',
],
'flowtype/space-before-type-colon': [
'error',
'never',
],
'flowtype/sort-keys': ['warn', 'asc'],
'flowtype/spread-exact-type': 'off',
'flowtype/type-id-match': 'off',
'flowtype/type-import-style': 'off',
'flowtype/union-intersection-spacing': [
'error',
'always',
],
'flowtype/use-flow-type': 'warn',
'flowtype/valid-syntax': 'warn',
},
settings: {

@@ -71,0 +82,0 @@ flowtype: {

{
"name": "@billogram/eslint-config",
"version": "2.9.2",
"version": "2.9.3",
"description": "Custom ESLint configurations",

@@ -5,0 +5,0 @@ "keywords": [

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