@opengov/ppf-eslint-config
Advanced tools
Comparing version 0.1.8 to 0.1.9
153
base.js
module.exports = { | ||
env: { | ||
es6: true, | ||
node: true | ||
}, | ||
extends: [ | ||
"airbnb-base", | ||
"airbnb-typescript/base", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"prettier" | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
sourceType: "module", | ||
project: "**/tsconfig.eslint.json" | ||
}, | ||
settings: {}, | ||
ignorePatterns: [ | ||
".eslintrc.js", | ||
"src/graphql/types/generated.ts", | ||
"dist/", | ||
"prisma/", | ||
"config/", | ||
"coverage/", | ||
"generated/src", | ||
], | ||
plugins: ["@typescript-eslint", "prettier"], | ||
rules: { | ||
"no-param-reassign": ["error", { props: false }], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_" | ||
} | ||
env: { | ||
es6: true, | ||
node: true | ||
}, | ||
extends: [ | ||
"airbnb-base", | ||
"airbnb-typescript/base", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"prettier" | ||
], | ||
"no-console": [ | ||
"error", | ||
{ | ||
allow: ["error"] | ||
} | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
sourceType: "module", | ||
project: "**/tsconfig.eslint.json" | ||
}, | ||
settings: {}, | ||
ignorePatterns: [ | ||
".eslintrc.js", | ||
"src/graphql/types/generated.ts", | ||
"dist/", | ||
"prisma/", | ||
"config/", | ||
"coverage/", | ||
"generated/src", | ||
], | ||
"no-duplicate-imports": "error", | ||
"default-case": "warn", | ||
"max-len": [ | ||
"warn", | ||
plugins: ["@typescript-eslint", "prettier"], | ||
rules: { | ||
"no-param-reassign": ["error", { props: false }], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_" | ||
} | ||
], | ||
"no-console": [ | ||
"error", | ||
{ | ||
allow: ["error"] | ||
} | ||
], | ||
"no-duplicate-imports": "error", | ||
"default-case": "warn", | ||
"max-len": [ | ||
"warn", | ||
{ | ||
code: 120, | ||
ignoreUrls: true, | ||
ignoreStrings: true, | ||
ignoreTemplateLiterals: true | ||
} | ||
], | ||
"import/order": [ | ||
"error", | ||
{ | ||
groups: ["builtin", "external", "internal", "parent", "sibling", "index", "object"] | ||
} | ||
], | ||
"import/prefer-default-export": "off", | ||
"import/no-default-export": "error", | ||
"@typescript-eslint/lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }] | ||
}, | ||
overrides: [ | ||
{ | ||
code: 120, | ||
ignoreUrls: true, | ||
ignoreStrings: true, | ||
ignoreTemplateLiterals: true | ||
} | ||
], | ||
"import/order": [ | ||
"error", | ||
files: ["**/__tests__/**.*", "**/__mocks__/**.*"], | ||
rules: { | ||
"no-underscore-dangle": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
} | ||
}, | ||
{ | ||
groups: ["builtin", "external", "internal", "parent", "sibling", "index", "object"] | ||
} | ||
], | ||
"import/prefer-default-export": "off", | ||
"import/no-default-export": "error", | ||
"@typescript-eslint/lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }] | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["**/__tests__/**.*", "**/__mocks__/**.*"], | ||
rules: { | ||
"no-underscore-dangle": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
} | ||
}, | ||
{ | ||
files: ["**.ts"], | ||
rules: { | ||
"class-methods-use-this": "off", | ||
files: ["**.ts"], | ||
rules: { | ||
"class-methods-use-this": "off", | ||
}, | ||
}, | ||
}, | ||
] | ||
} | ||
] | ||
} | ||
{ | ||
"name": "@opengov/ppf-eslint-config", | ||
"version": "0.1.8", | ||
"description": "ESLint base config", | ||
"version": "0.1.9", | ||
"description": "ESLint config for PPF", | ||
"keywords": [ | ||
"eslint" | ||
], | ||
"author": "Opengov", | ||
"homepage": "https://github.com/OpenGov/pluggable-payments#readme", | ||
"license": "ISC", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "base.js", | ||
"devDependencies": { | ||
@@ -22,2 +23,9 @@ "@opengov/ppf-tsconfig": "^0.0.1", | ||
}, | ||
"directories": { | ||
"lib": "lib", | ||
"test": "__tests__" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"repository": { | ||
@@ -27,3 +35,5 @@ "type": "git", | ||
}, | ||
"scripts": {}, | ||
"scripts": { | ||
"test": "node ./__tests__/ppf-eslint-ppf.test.js" | ||
}, | ||
"bugs": { | ||
@@ -30,0 +40,0 @@ "url": "https://github.com/OpenGov/pluggable-payments/issues" |
@@ -1,2 +0,2 @@ | ||
# `@opengov/ppf-eslint-config` | ||
# `ppf-eslint-ppf` | ||
@@ -8,5 +8,5 @@ > TODO: description | ||
``` | ||
const ppfEslintConfig = require('@opengov/ppf-eslint-config'); | ||
const ppfEslintPpf = require('ppf-eslint-ppf'); | ||
// TODO: DEMONSTRATE API | ||
``` |
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
3166
3
82