Skip to content

Commit

Permalink
Migrate TSLint to ESLint (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
sc-illiakovalenko authored Dec 23, 2020
1 parent be22a45 commit 19954b1
Show file tree
Hide file tree
Showing 438 changed files with 19,903 additions and 5,917 deletions.
81 changes: 62 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,31 +1,74 @@
{
"root": true,
"parser": "babel-eslint",
"extends": ["airbnb-base", "prettier", "plugin:import/errors", "plugin:import/warnings"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "jsdoc"],
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"jsdoc/newline-after-description": "off",
"jsdoc/require-property-description": "off",
"jsdoc/require-param-description": "off",
"jsdoc/require-returns": "off",
"jsdoc/no-undefined-types": "off",
"jsdoc/require-returns-type": "off",
"prettier/prettier": "error",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": [
"@typescript-eslint/naming-convention": [
"error",
{
"devDependencies": true,
"optionalDependencies": true
"format": ["PascalCase"],
"selector": "typeLike",
"custom": {
"regex": "^I[A-Z]",
"match": false
}
}
],
"linebreak-style": ["error", "windows"],
"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": ["error", "always"],
"no-unused-vars": [
"@typescript-eslint/member-ordering": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"args": "none"
}
{ "functions": false, "variables": false }
],
"radix": ["error", "as-needed"],
"prefer-destructuring": "off"
},
"plugins": ["import", "prettier"],
"settings": {
"import/ignore": ["node_modules", ".png$", ".jpg$"]
"@typescript-eslint/typedef": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/no-var-requires": "off",
"no-useless-escape": "off",
"spaced-comment": "error",
"curly": ["error", "multi-line"],
"eol-last": ["error", "always"],
"guard-for-in": "error",
"no-unused-labels": "error",
"no-caller": "error",
"no-bitwise": "error",
"no-multiple-empty-lines": "error",
"no-new-wrappers": "error",
"no-eval": "error",
"dot-notation": "error",
"no-trailing-spaces": "error",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"brace-style": "error",
"quotes": ["error", "single"],
"radix": "error",
"default-case": "error",
"eqeqeq": "error",
"jsx-quotes": ["error", "prefer-double"]
}
}
9 changes: 9 additions & 0 deletions docs/data/routes/upgrade-guides/16.0/en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: "16.0"
routeTemplate: ./data/component-templates/full-page.yml
title: Upgrading to JSS 16.0
---

### Upgrading from JSS 15.0 to JSS 16.0

1. Check usages of `any` type (and fix any build/lint errors) as we start to migrate from `any` to `unknown` or more specific types
Loading

0 comments on commit 19954b1

Please sign in to comment.