Skip to content

Commit

Permalink
Merge pull request #39 from keyoke/keyoke/features
Browse files Browse the repository at this point in the history
update linting
  • Loading branch information
keyoke authored Sep 29, 2021
2 parents 1c7a4eb + 3ad78bb commit d9b75bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/node_modules
/dist
/packages
node_modules
dist
packages
16 changes: 2 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
Expand All @@ -23,27 +24,14 @@
"sourceType": "module"
},
"plugins": [
"import",
"react",
"@typescript-eslint",
"prettier"
],
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "single"],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/no-dynamic-require": 0,
"global-require": 0,
"import/prefer-default-export": 0,
"no-underscore-dangle": 0,
"no-await-in-loop": 0,
"no-restricted-syntax": 0,
Expand All @@ -56,7 +44,7 @@
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"endOfLine": "lf",
"endOfLine": "auto",
"arrowParens": "always"
}
]
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ stages:
displayName: 'Install Node CLI for Azure DevOps'
- script: npm install
displayName: 'Install Dependencies'
- script: npm run lint
displayName: 'Run ESLint'
- script: |
npm run package -- --override {\"version\": \"$(MajorVersion).$(MinorVersion).$(PatchVersion)\"}
displayName: 'Build & Package Extension'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"build": "webpack",
"package": "npm run build && tfx extension create --manifests vss-extension.json --output-path ./packages/",
"linter": "eslint src --fix --cache"
"lint": "eslint src --cache",
"lintfix": "eslint src --fix --cache"
},
"keywords": [],
"author": "Gareth Emslie",
Expand All @@ -32,7 +33,6 @@
"prettier": "^2.4.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.0"
}
Expand Down

0 comments on commit d9b75bb

Please sign in to comment.