Bläddra i källkod

exchange eslint with tslint

mightyplow 5 år sedan
förälder
incheckning
60f4822873
4 ändrade filer med 96 tillägg och 1160 borttagningar
  1. 0 35
      .eslintrc.js
  2. 81 1116
      package-lock.json
  3. 1 9
      package.json
  4. 14 0
      tslint.json

+ 0 - 35
.eslintrc.js

@@ -1,35 +0,0 @@
-module.exports = {
-  env: {
-    browser: true,
-    es6: true,
-  },
-  extends: [
-    'standard',
-  ],
-  globals: {
-    Atomics: 'readonly',
-    SharedArrayBuffer: 'readonly',
-  },
-  parser: '@typescript-eslint/parser',
-  parserOptions: {
-    ecmaFeatures: {
-      jsx: true,
-    },
-    ecmaVersion: 2018,
-    sourceType: 'module',
-  },
-  plugins: [
-    'react',
-    '@typescript-eslint',
-  ],
-  rules: {
-    semi: ['error', 'always'],
-    'react/jsx-tag-spacing': ['error', {
-      beforeSelfClosing: 'always'
-    }],
-    'no-unused-vars': 'off',
-    'react/jsx-uses-react': 'error',
-    'react/jsx-uses-vars': 'error',
-    '@typescript-eslint/no-unused-vars': 'error'
-  },
-};

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 81 - 1116
package-lock.json


+ 1 - 9
package.json

@@ -36,15 +36,6 @@
     "@types/react-router": "^5.1.3",
     "@types/react-router-dom": "^5.1.2",
     "@types/webpack-env": "^1.14.1",
-    "@typescript-eslint/eslint-plugin": "^2.7.0",
-    "@typescript-eslint/parser": "^2.7.0",
-    "eslint": "^6.6.0",
-    "eslint-config-standard": "^14.1.0",
-    "eslint-plugin-import": "^2.18.2",
-    "eslint-plugin-node": "^10.0.0",
-    "eslint-plugin-promise": "^4.2.1",
-    "eslint-plugin-react": "^7.16.0",
-    "eslint-plugin-standard": "^4.0.1",
     "parcel-bundler": "^1.12.4",
     "postcss-modules": "^1.4.1",
     "postcss-nested": "^4.2.1",
@@ -52,6 +43,7 @@
     "react-dom": "^16.11.0",
     "react-router": "^5.1.2",
     "react-router-dom": "^5.1.2",
+    "tslint": "^5.20.1",
     "typescript-plugin-css-modules": "^2.0.2"
   }
 }

+ 14 - 0
tslint.json

@@ -0,0 +1,14 @@
+{
+    "defaultSeverity": "error",
+    "extends": [
+        "tslint:recommended"
+    ],
+    "jsRules": {},
+    "rules": {
+        "interface-over-type-literal": false,
+        "trailing-comma": false,
+        "quotemark": false,
+        "space-before-function-paren": false
+    },
+    "rulesDirectory": []
+}