Skip to content

Commit 9b383bc

Browse files
feat: add scss and react support in import order eslint rule (#241)
* 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 <[email protected]>
1 parent 063a054 commit 9b383bc

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,22 @@ module.exports = {
153153
caseInsensitive: true,
154154
},
155155
pathGroups: [
156+
{
157+
pattern: 'react',
158+
group: 'external',
159+
position: 'before',
160+
},
156161
{
157162
pattern: '@sourcegraph/**',
158163
group: 'external',
159164
position: 'after',
160165
},
166+
{
167+
pattern: '*.scss',
168+
group: 'index',
169+
patternOptions: { matchBase: true },
170+
position: 'after',
171+
},
161172
],
162173
pathGroupsExcludedImportTypes: [],
163174
},

.tool-versions

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
golang 1.17.5
2+
nodejs 16.7.0
3+
yarn 1.22.17
4+
fd 7.4.0
5+
shfmt 3.2.0
6+
shellcheck 0.7.1
7+
kubectl 1.21.7
8+
github-cli 2.0.0
9+
packer 1.7.10
10+
trivy 0.20.0
11+
kustomize 4.0.5
12+
awscli 2.4.7
13+
python system
14+
rust 1.58.0

check_dependent.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CONFIG_DIR=$(pwd)
88
CLONE_DIR=$(mktemp -d)
99
git clone --depth 1 https://github.com/sourcegraph/sourcegraph "$CLONE_DIR"
1010
cd "$CLONE_DIR"
11+
mkdir -p annotations
1112
echo "--- install nodejs"
1213
asdf install
1314
echo "--- yarn"

0 commit comments

Comments
 (0)