Skip to content

Commit

Permalink
feat: add scss and react support in import order eslint rule (#241)
Browse files Browse the repository at this point in the history
* fix: add scss support in import order eslint rule

* fix(buildkite): add .tool-versions file

* hotfix: create annotation folder

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
  • Loading branch information
vovakulikov and jhchabran committed Mar 14, 2022
1 parent 063a054 commit 9b383bc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.js
Expand Up @@ -153,11 +153,22 @@ module.exports = {
caseInsensitive: true,
},
pathGroups: [
{
pattern: 'react',
group: 'external',
position: 'before',
},
{
pattern: '@sourcegraph/**',
group: 'external',
position: 'after',
},
{
pattern: '*.scss',
group: 'index',
patternOptions: { matchBase: true },
position: 'after',
},
],
pathGroupsExcludedImportTypes: [],
},
Expand Down
14 changes: 14 additions & 0 deletions .tool-versions
@@ -0,0 +1,14 @@
golang 1.17.5
nodejs 16.7.0
yarn 1.22.17
fd 7.4.0
shfmt 3.2.0
shellcheck 0.7.1
kubectl 1.21.7
github-cli 2.0.0
packer 1.7.10
trivy 0.20.0
kustomize 4.0.5
awscli 2.4.7
python system
rust 1.58.0
1 change: 1 addition & 0 deletions check_dependent.sh
Expand Up @@ -8,6 +8,7 @@ CONFIG_DIR=$(pwd)
CLONE_DIR=$(mktemp -d)
git clone --depth 1 https://github.com/sourcegraph/sourcegraph "$CLONE_DIR"
cd "$CLONE_DIR"
mkdir -p annotations
echo "--- install nodejs"
asdf install
echo "--- yarn"
Expand Down

0 comments on commit 9b383bc

Please sign in to comment.