Skip to content
Commits on Source (3)
{
"plugins": [
"unicorn",
"promise",
"import",
"node"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:unicorn/recommended",
"plugin:node/recommended"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".ts",
".vue"
]
}
},
"node": {
"convertPath": {
"src/**/*.ts": [
"^src/(.+?)\\.ts$",
"dist/$1.js"
]
},
"tryExtensions": [
".ts",
".js"
]
}
},
"rules": {
"unicorn/filename-case": "off",
"no-underscore-dangle": "off",
"no-inner-declarations": "off",
"no-shadow": "off",
"no-console": "off",
"arrow-parens": "off",
"block-scoped-var": "off",
"no-redeclare": "off",
"unicorn/no-process-exit": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/explicit-length-check": "off",
"unicorn/import-index": "off",
"promise/no-native": "off",
"prefer-const": "error",
"eol-last": "warn",
"curly": [
"error",
"multi-line"
],
"camelcase": [
"error",
{
"properties": "never"
}
],
"guard-for-in": "error",
"no-else-return": "error",
"radix": "error",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"semi": [
"error",
"always"
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"comma-style": "error",
"consistent-this": [
"error",
"this"
],
"func-style": [
"error",
"declaration"
],
"no-useless-escape": "error",
"no-duplicate-imports": "error",
"max-nested-callbacks": [
"warn",
6
],
"for-direction": "error",
"semi-style": "error",
"no-buffer-constructor": "error",
"switch-colon-spacing": [
"error",
{
"after": true,
"before": false
}
],
"padding-line-between-statements": [
"warn",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": [
"const",
"let",
"var"
],
"next": "*"
},
{
"blankLine": "any",
"prev": [
"const",
"let",
"var"
],
"next": [
"const",
"let",
"var"
]
},
{
"blankLine": "always",
"prev": "directive",
"next": "*"
},
{
"blankLine": "any",
"prev": "directive",
"next": "directive"
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 2
}
],
"no-ternary": "error",
"func-names": [
"error",
"as-needed"
],
"one-var": [
"error",
"never"
],
"operator-assignment": [
"error",
"always"
],
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"eqeqeq": [
"error",
"always"
],
"operator-linebreak": "error",
"keyword-spacing": "error",
"no-return-await": "error",
"no-case-declarations": "warn",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never"
}
],
"space-in-parens": "error",
"no-multi-assign": "error",
"prefer-promise-reject-errors": "error",
"prefer-destructuring": "error",
"no-var": "error",
"constructor-super": "error",
"no-dupe-class-members": "error",
"prefer-arrow-callback": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-this-before-super": "error",
"no-useless-constructor": "error",
"object-shorthand": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"require-yield": "error",
"template-curly-spacing": "error",
"no-new-symbol": "error",
"prefer-template": "error",
"generator-star-spacing": "error",
"object-property-newline": "error",
"no-useless-rename": "error",
"no-prototype-builtins": "error",
"no-mixed-operators": "error",
"symbol-description": "error",
"class-methods-use-this": "error",
"prefer-numeric-literals": "error",
"no-compare-neg-zero": "error",
"nonblock-statement-body-position": "error",
"no-misleading-character-class": "error",
"require-atomic-updates": "error",
"no-async-promise-executor": "error",
"require-unicode-regexp": "error",
"promise/always-return": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-nesting": "error",
"promise/prefer-await-to-then": "error",
"promise/no-promise-in-callback": "warn",
"promise/no-callback-in-promise": "warn",
"promise/prefer-await-to-callbacks": "warn",
"promise/avoid-new": "warn",
"import/no-unresolved": "error",
"import/named": "error",
"import/default": "error",
"import/namespace": "error",
"import/no-absolute-path": "error",
"import/no-dynamic-require": "error",
"import/no-webpack-loader-syntax": "error",
"import/export": "error",
"import/no-duplicates": "error",
"import/no-mutable-exports": "error",
"import/no-amd": "error",
"import/first": "error",
"import/no-extraneous-dependencies": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-deprecated": "error",
"import/extensions": [
"error",
"never",
{
"json": "always"
}
],
"import/order": [
"warn",
{
"newlines-between": "always"
}
],
"import/no-named-default": "error",
"import/newline-after-import": "error",
"import/no-unassigned-import": "error",
"no-process-exit": "off"
}
}
\ No newline at end of file
{
"plugins": [
"@corbinu/corbinu"
],
"extends": [
"plugin:@corbinu/corbinu/base",
"plugin:@corbinu/corbinu/node",
"plugin:@corbinu/corbinu/lesslodash",
"plugin:@corbinu/corbinu/typescript"
]
}
\ No newline at end of file
.DS_Store
.tsbuildinfo
dist/*
.vscode/
dist
node_modules/
pids/
logs/
lcov.info
*.seed
*.log
*.csv
*.dat
*.csv
*.out
*.pid
*.gz
.DS_Store
.tsbuildinfo
.vscode/
src
node_modules/
pids/
lcov.info
*.seed
*.log
*.dat
*.csv
*.out
*.pid
*.gz
trailingComma = "all"
tabWidth = 4
printWidth = 180
arrowParens = "always"
parser = "typescript"
\ No newline at end of file
"use strict";
const BaseRc = require("./baserc.json");
const BrowserRc = require("./browserrc.json");
const LodashRc = require("./lodashrc.json");
const NodeRc = require("./noderc.json");
const JestRc = require("./jestrc.json");
const LessLodashRc = require("./lesslodashrc.json");
const RelaxRc = require("./relaxrc.json");
const TypeScriptRc = require("./typescriptrc.json");
module.exports = {
"configs": {
"base": BaseRc,
"browser": BrowserRc,
"lodash": LodashRc,
"node": NodeRc,
"jest": JestRc,
"lesslodash": LessLodashRc,
"relax": RelaxRc,
"typescript": TypeScriptRc
}
};
......@@ -2,6 +2,16 @@
"name": "@corbinu/eslint-plugin-corbinu",
"version": "8.6.0",
"license": "MIT",
"main": "dist/index",
"typings": "dist/index",
"scripts": {
"lint": "yarn run tsc:check && eslint src --fix --ext .ts,.js",
"test": "yarn run lint && yarn run tsc",
"clean": "rm -rvf dist",
"tsc": "tsc",
"tsc:check": "tsc --noEmit",
"prepare": "yarn run tsc"
},
"author": {
"name": "Corbin Uselton",
"email": "corbinu@decimal.io"
......@@ -11,30 +21,28 @@
"yarn": "^1.18.0",
"node": ">=10.13.0"
},
"scripts": {
"lint": "eslint --fix ."
},
"main": "./index.js",
"repository": "gitlab:corbinu/eslint-plugin-corbinu",
"dependencies": {
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"eslint-config-prettier": "^6.7.0",
"@typescript-eslint/eslint-plugin": "^2.15.0",
"@typescript-eslint/parser": "^2.15.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-jest": "^23.1.1",
"eslint-plugin-jest": "^23.4.0",
"eslint-plugin-lodash": "^6.0.0",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-unicorn": "^14.0.1",
"eslint-plugin-unicorn": "^15.0.1",
"eslint-plugin-you-dont-need-lodash-underscore": "^6.8.0",
"prettier": "^1.19.1"
},
"peerDependencies": {
"eslint": ">=6.1.0"
"eslint": ">=6.8.0"
},
"devDependencies": {
"@corbinu/eslint-plugin-corbinu": "^8.6.0",
"@types/node": "^13.1.6",
"eslint": "^6.8.0",
"typescript": "~3.7.4"
}
}
}
\ No newline at end of file
......@@ -50,6 +50,12 @@
"error",
"this"
],
"accessor-pairs": [
"error",
{
"enforceForClassMembers": true
}
],
"func-style": [
"error",
"declaration"
......@@ -65,6 +71,11 @@
"error",
"never"
],
"grouped-accessor-pairs": "error",
"no-constructor-return": "error",
"no-dupe-else-if": "error",
"no-setter-return": "error",
"prefer-exponentiation-operator": "error",
"operator-assignment": "error",
"eqeqeq": "error",
"no-return-await": "error",
......@@ -77,10 +88,13 @@
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"prefer-regex-literals": "error",
"default-param-last": "error",
"no-useless-rename": "error",
"symbol-description": "error",
"class-methods-use-this": "error",
"prefer-numeric-literals": "error",
"no-import-assign": "error",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-unreadable-array-destructuring": "off",
"unicorn/no-process-exit": "error",
......
"use strict";
import BaseRc from "./baserc.json";
import BrowserRc from "./browserrc.json";
import LodashRc from "./lodashrc.json";
import NodeRc from "./noderc.json";
import JestRc from "./jestrc.json";
import LessLodashRc from "./lesslodashrc.json";
import RelaxRc from "./relaxrc.json";
import TypeScriptRc from "./typescriptrc.json";
export = {
configs: {
base: BaseRc,
browser: BrowserRc,
lodash: LodashRc,
node: NodeRc,
jest: JestRc,
lesslodash: LessLodashRc,
relax: RelaxRc,
typescript: TypeScriptRc,
},
};
{
"compileOnSave": true,
"compilerOptions": {
"target": "es2019",
"incremental": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strict": true,
"strictPropertyInitialization": false,
"noUnusedLocals": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"moduleResolution": "Node",
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"outDir": "dist",
"resolveJsonModule": true,
"module": "commonjs"
},
"include": [
"src/**/*",
"declarations.d.ts"
],
"exclude": [
"node_modules"
]
}
\ No newline at end of file
This diff is collapsed.