@atlaskit/eslint-plugin-ui-styling-standard 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @atlaskit/eslint-plugin-ui-styling-standard
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#63960](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63960) [`8e3774cada83`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e3774cada83) - Created the design system styling standard package
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # Atlassian UI Styling Standard ESLint Plugin
2
+
3
+ The UI Styling Standard plugin utilizes rules from across Atlassian, Open Source, and more, to define what the standard for writing styles at Atlassian should look like.
4
+
5
+ ## Installation
6
+
7
+ Not intended for use outside the Atlassian frontend repository.
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "../tsconfig",
3
+ "compilerOptions": {
4
+ "target": "es5",
5
+ "outDir": "../dist",
6
+ "rootDir": "../",
7
+ "baseUrl": "../",
8
+ "paths": {}
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../__tests__/*",
17
+ "../src/**/*.test.*",
18
+ "../src/**/test.*"
19
+ ]
20
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.rules = exports.configs = void 0;
7
+ var rules = exports.rules = {};
8
+ var configs = exports.configs = {
9
+ recommended: {
10
+ plugins: ['@atlaskit/eslint-plugin-ui-styling-standard'],
11
+ rules: {
12
+ '@atlaskit/design-system/consistent-css-prop-usage': 'error'
13
+ }
14
+ }
15
+ };
@@ -0,0 +1,9 @@
1
+ export const rules = {};
2
+ export const configs = {
3
+ recommended: {
4
+ plugins: ['@atlaskit/eslint-plugin-ui-styling-standard'],
5
+ rules: {
6
+ '@atlaskit/design-system/consistent-css-prop-usage': 'error'
7
+ }
8
+ }
9
+ };
@@ -0,0 +1,9 @@
1
+ export var rules = {};
2
+ export var configs = {
3
+ recommended: {
4
+ plugins: ['@atlaskit/eslint-plugin-ui-styling-standard'],
5
+ rules: {
6
+ '@atlaskit/design-system/consistent-css-prop-usage': 'error'
7
+ }
8
+ }
9
+ };
@@ -0,0 +1,9 @@
1
+ export declare const rules: {};
2
+ export declare const configs: {
3
+ recommended: {
4
+ plugins: string[];
5
+ rules: {
6
+ '@atlaskit/design-system/consistent-css-prop-usage': string;
7
+ };
8
+ };
9
+ };
@@ -0,0 +1,9 @@
1
+ export declare const rules: {};
2
+ export declare const configs: {
3
+ recommended: {
4
+ plugins: string[];
5
+ rules: {
6
+ '@atlaskit/design-system/consistent-css-prop-usage': string;
7
+ };
8
+ };
9
+ };
package/index.js ADDED
@@ -0,0 +1,24 @@
1
+ /* eslint-disable import/no-extraneous-dependencies */
2
+ /* eslint-disable global-require */
3
+ // Used only for internal repo usage.
4
+ const path = require('path');
5
+
6
+ const paths = require('tsconfig-paths');
7
+
8
+ if (!require.extensions['.ts']) {
9
+ // ts-node can only handle being registered once, see https://github.com/TypeStrong/ts-node/issues/409
10
+ require('ts-node').register({
11
+ project: path.join(__dirname, 'tsconfig.json'),
12
+ });
13
+ }
14
+
15
+ try {
16
+ // We programatically register tsconfig paths here so it picks up the tsconfig here
17
+ // instead of in root CWD.
18
+ paths.register(paths.loadConfig(__dirname));
19
+ } catch (e) {
20
+ // eslint-disable-next-line no-console
21
+ console.log(e);
22
+ }
23
+
24
+ module.exports = require('./src/index');
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@atlaskit/eslint-plugin-ui-styling-standard",
3
+ "version": "0.1.0",
4
+ "author": "Atlassian Pty Ltd",
5
+ "description": "The Atlassian UI Styling Standard Plugin Package - used to enforce Atlassian's styling standards within internal applications",
6
+ "license": "UNLICENSED",
7
+ "atlassian": {
8
+ "team": "Design System Team",
9
+ "inPublicMirror": false,
10
+ "releaseModel": "continuous"
11
+ },
12
+ "publishConfig": {
13
+ "registry": "https://registry.npmjs.org/"
14
+ },
15
+ "homepage": "https://hello.atlassian.net/wiki/spaces/DST/pages/3183872207/UI+Styling+Standard+-+Support+from+external+teams",
16
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
+ "main": "dist/cjs/index.js",
18
+ "module": "dist/esm/index.js",
19
+ "module:es2019": "dist/es2019/index.js",
20
+ "types": "dist/types/src/index.d.ts",
21
+ "typesVersions": {
22
+ ">=4.5 <4.9": {
23
+ "*": [
24
+ "dist/types-ts4.5/*",
25
+ "dist/types-ts4.5/index.d.ts"
26
+ ]
27
+ }
28
+ },
29
+ "sideEffects": false,
30
+ "atlaskit:src": "src/index.tsx",
31
+ "af:exports": {
32
+ ".": "./src/index.tsx"
33
+ },
34
+ "dependencies": {
35
+ "@babel/runtime": "^7.0.0"
36
+ },
37
+ "devDependencies": {
38
+ "@atlaskit/eslint-plugin-design-system": "^8.15.4",
39
+ "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
40
+ "@types/eslint": "^8.4.5",
41
+ "eslint": "^7.7.0",
42
+ "tsconfig-paths": "^4.2.0",
43
+ "typescript": "~4.9.5"
44
+ },
45
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
46
+ }
package/src/index.tsx ADDED
@@ -0,0 +1,10 @@
1
+ export const rules = {};
2
+
3
+ export const configs = {
4
+ recommended: {
5
+ plugins: ['@atlaskit/eslint-plugin-ui-styling-standard'],
6
+ rules: {
7
+ '@atlaskit/design-system/consistent-css-prop-usage': 'error',
8
+ },
9
+ },
10
+ };
@@ -0,0 +1,37 @@
1
+ {
2
+ "extends": "../../../tsconfig.node.json",
3
+ "include": ["./src/**/*.ts", "./src/**/*.tsx"],
4
+ "exclude": [
5
+ "**/docs/**/*",
6
+ "**/__tests__/**/*",
7
+ "**/vr-tests/**/*",
8
+ "**/__perf__/**/*",
9
+ "**/*.test.*",
10
+ "**/test.*",
11
+ "**/test-*",
12
+ "**/examples.ts",
13
+ "**/examples.tsx",
14
+ "**/examples/*.ts",
15
+ "**/examples/*.tsx",
16
+ "**/examples/**/*.ts",
17
+ "**/examples/**/*.tsx",
18
+ "**/storybook/**/*",
19
+ "**/constellation/**/*",
20
+ ".storybook/*",
21
+ "./__fixtures__/**/*",
22
+ "./__generated__/**/*",
23
+ "./mocks/**/*",
24
+ "./__mocks__/**/*",
25
+ "**/mock.*",
26
+ "**/codemods/**/*.ts",
27
+ "**/codemods/**/*.tsx"
28
+ ],
29
+ "compilerOptions": {
30
+ "baseUrl": "./",
31
+ "lib": ["ES2021.String"],
32
+ "composite": true,
33
+ "outDir": "../../../tsDist/@atlaskit__eslint-plugin-ui-styling-standard/app"
34
+ },
35
+ "references": [],
36
+ "files": []
37
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "extends": "../../../tsconfig.node.json",
3
+ "include": [
4
+ "**/docs/**/*",
5
+ "**/__tests__/**/*",
6
+ "**/vr-tests/**/*",
7
+ "**/__perf__/**/*",
8
+ "**/*.test.*",
9
+ "**/test.*",
10
+ "**/test-*",
11
+ "**/examples.ts",
12
+ "**/examples.tsx",
13
+ "**/examples/*.ts",
14
+ "**/examples/*.tsx",
15
+ "**/examples/**/*.ts",
16
+ "**/examples/**/*.tsx",
17
+ "**/storybook/**/*",
18
+ "**/constellation/**/*",
19
+ ".storybook/*",
20
+ "./__fixtures__/**/*",
21
+ "./__generated__/**/*",
22
+ "./mocks/**/*",
23
+ "./__mocks__/**/*",
24
+ "**/mock.*",
25
+ "**/codemods/**/*.ts",
26
+ "**/codemods/**/*.tsx"
27
+ ],
28
+ "exclude": ["./dist/**/*", "./build/**/*", "./node_modules/**/*"],
29
+ "compilerOptions": {
30
+ "baseUrl": "./",
31
+ "lib": ["ES2021.String"],
32
+ "composite": true,
33
+ "outDir": "../../../tsDist/@atlaskit__eslint-plugin-ui-styling-standard/dev"
34
+ },
35
+ "references": [
36
+ {
37
+ "path": "tsconfig.app.json"
38
+ }
39
+ ],
40
+ "files": []
41
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "extends": "../../../tsconfig.node.json",
3
+ "include": [
4
+ "__tests__/**/*.ts",
5
+ "__tests__/**/*.tsx",
6
+ "src/**/*.ts",
7
+ "src/**/*.tsx",
8
+ "scripts"
9
+ ],
10
+ "exclude": [
11
+ "src/**/__tests__/*.*",
12
+ ],
13
+ "compilerOptions": {
14
+ "baseUrl": "./",
15
+ "lib": ["ES2021.String"],
16
+ "paths": {}
17
+ },
18
+ "ts-node": {
19
+ // It is faster to skip typechecking.
20
+ "transpileOnly": true,
21
+ // We must load files for third party defs - https://typestrong.org/ts-node/docs/types
22
+ "files": true,
23
+ }
24
+ }