Skip to content

Commit 97048ba

Browse files
authored
Merge pull request #41 from brionmario/fix-linter-and-formatter
fix: eslint & code formatter issues
2 parents 9435912 + b816b9d commit 97048ba

File tree

25 files changed

+2336
-244
lines changed

25 files changed

+2336
-244
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Global ignore file incase if a child package doesn't include one.
2+
3+
/dist
4+
/build
5+
/node_modules
6+
/coverage

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3+
*
4+
* WSO2 LLC. licenses this file to you under the Apache License,
5+
* Version 2.0 (the "License"); you may not use this file except
6+
* in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing,
12+
* software distributed under the License is distributed on an
13+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
* KIND, either express or implied. See the License for the
15+
* specific language governing permissions and limitations
16+
* under the License.
17+
*/
18+
19+
module.exports = {
20+
env: {
21+
es6: true,
22+
node: true,
23+
},
24+
extends: ['plugin:@wso2/internal', 'plugin:@wso2/prettier'],
25+
plugins: ['@wso2'],
26+
};

.github/workflows/pr-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124

125125
test:
126126
name: 👾 Unit Test (TESTING)
127-
needs: [lint, typecheck]
127+
# needs: [lint, typecheck]
128128
runs-on: ubuntu-latest
129129
strategy:
130130
matrix:
@@ -173,7 +173,7 @@ jobs:
173173

174174
build:
175175
name: 🚧 Build
176-
needs: [ lint, typecheck, test ]
176+
# needs: [ lint, typecheck, test ]
177177
runs-on: ubuntu-latest
178178
strategy:
179179
matrix:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ testem.log
3838
.DS_Store
3939
Thumbs.db
4040

41+
# Nx
4142
.nx/cache

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Global ignore file incase if a child package doesn't include one.
2+
3+
/dist
4+
/build
5+
/node_modules
6+
/coverage

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
"devDependencies": {
3131
"@changesets/changelog-github": "^0.5.0",
3232
"@changesets/cli": "^2.27.3",
33-
"nx": "18.2.4"
33+
"@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?fa0b844715320a3953d6d055997c0770f8695082",
34+
"@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?fa0b844715320a3953d6d055997c0770f8695082",
35+
"eslint": "~8.57.0",
36+
"nx": "18.2.4",
37+
"prettier": "^3.2.5"
3438
},
3539
"workspaces": [
3640
"packages/*",

packages/core/.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.editorconfig

packages/core/.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/dist
2+
/build
23
/node_modules
4+
/coverage

0 commit comments

Comments
 (0)