Skip to content

Commit b0ce9b1

Browse files
committedJul 5, 2024
refactor: initial commit
1 parent 9342575 commit b0ce9b1

File tree

154 files changed

+23928
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+23928
-4
lines changed
 

Diff for: ‎.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/dist
2+
/templates
3+
/generated
4+
node_modules

Diff for: ‎.eslintrc.cjs

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
**
3+
** Copyright (c) 2024, Oracle and/or its affiliates.
4+
** All rights reserved
5+
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
6+
*/
7+
/* eslint-env node */
8+
9+
/** @type { import( './eslintrc' ).JSONSchemaForESLintConfigurationFiles } */
10+
const gEslintConfig = {
11+
extends: [
12+
'oclif',
13+
'oclif-typescript',
14+
'prettier',
15+
],
16+
plugins: [
17+
'import'
18+
],
19+
rules: {
20+
// IMPORTANT: Do not use styling rules as they may conflict with the
21+
// formatting. if in doubt, run the following command to make
22+
// sure your current config is not using any conflicting
23+
// rules `npx eslint-config-prettier <MAIN_JS_FILE>`
24+
25+
'array-bracket-spacing': [
26+
'warn',
27+
'always',
28+
{
29+
arraysInArrays: true,
30+
objectsInArrays: true,
31+
singleValue: true,
32+
}
33+
],
34+
'computed-property-spacing': [
35+
'warn',
36+
'always'
37+
],
38+
'import/extensions': [
39+
'error',
40+
{
41+
js: 'always',
42+
json: 'always'
43+
}
44+
],
45+
'indent': [
46+
'error',
47+
4
48+
],
49+
'no-console': [
50+
'error',
51+
{
52+
allow: [
53+
'table'
54+
]
55+
}
56+
],
57+
'object-curly-spacing': [
58+
'warn',
59+
'always'
60+
],
61+
'quotes': [
62+
'warn',
63+
'single'
64+
],
65+
'semi': [
66+
'warn',
67+
'always'
68+
],
69+
'space-in-parens': [
70+
'warn',
71+
'always'
72+
]
73+
}
74+
};
75+
76+
module.exports = gEslintConfig;
77+

0 commit comments

Comments
 (0)