diff --git a/.eslintrc.js b/.eslintrc.js index d5a0e366b8b..9bbe0ec6f7b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -43,7 +43,7 @@ module.exports = { 'api', 'api-graphql', 'auth', - 'aws-amplify', + // 'aws-amplify', // 'core', 'datastore', 'datastore-storage-adapter', diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index c222d81e123..e83c1ee3ae9 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -244,7 +244,8 @@ "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "rimraf lib-esm lib dist", "format": "echo \"Not implemented\"", - "lint": "tslint 'src/**/*.ts' && npm run ts-coverage", + "lint": "eslint '**/*.{ts,tsx}' && npm run ts-coverage", + "lint:fix": "eslint '**/*.{ts,tsx}' --fix", "generate-docs-local": "typedoc --out docs src", "generate-docs-root": "typedoc --out ../../docs src", "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 93.26" diff --git a/packages/aws-amplify/tslint.json b/packages/aws-amplify/tslint.json deleted file mode 100644 index 1bb9e144d24..00000000000 --- a/packages/aws-amplify/tslint.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "defaultSeverity": "error", - "plugins": ["prettier"], - "extends": [], - "jsRules": {}, - "rules": { - "prefer-const": true, - "max-line-length": [true, 120], - "no-empty-interface": true, - "no-var-keyword": true, - "object-literal-shorthand": true, - "no-eval": true, - "space-before-function-paren": [ - true, - { - "anonymous": "never", - "named": "never" - } - ], - "no-parameter-reassignment": true, - "align": [true, "parameters"], - "no-duplicate-imports": true, - "one-variable-per-declaration": [false, "ignore-for-loop"], - "triple-equals": [true, "allow-null-check"], - "comment-format": [true, "check-space"], - "indent": [false], - "whitespace": [ - false, - "check-branch", - "check-decl", - "check-operator", - "check-preblock" - ], - "eofline": true, - "variable-name": [ - true, - "check-format", - "allow-pascal-case", - "allow-snake-case", - "allow-leading-underscore" - ], - "semicolon": [true, "always", "ignore-interfaces"] - }, - "rulesDirectory": [] -}