-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a3cd49
commit 7ef70e3
Showing
44 changed files
with
170 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
overrides: | ||
- files: | ||
- '**/*.{js,cjs,mjs}' | ||
|
||
parser: '@babel/eslint-parser' | ||
parserOptions: | ||
ecmaVersion: latest | ||
requireConfigFile: false | ||
sourceType: 'script' | ||
babelOptions: | ||
plugins: | ||
- '@babel/plugin-syntax-import-assertions' | ||
|
||
rules: | ||
"import/first": off | ||
|
||
extends: | ||
- "standard" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const a = 'a' | ||
|
||
export function aFunc() { | ||
export function aFunc () { | ||
return a | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const b = 'b' | ||
|
||
export function bFunc() { | ||
export function bFunc () { | ||
return b | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { testB } from './cyclical-b.mjs'; | ||
import { testB } from './cyclical-b.mjs' | ||
|
||
export function testA() { | ||
console.log("testA"); | ||
export function testA () { | ||
console.log('testA') | ||
} | ||
|
||
testB(); | ||
testB() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { testA } from './cyclical-a.mjs'; | ||
import { testA } from './cyclical-a.mjs' | ||
|
||
export function testB() { | ||
console.log("testB"); | ||
testA(); | ||
} | ||
export function testB () { | ||
console.log('testB') | ||
testA() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
let env = {FOO: 'baz'}; | ||
let env = { FOO: 'baz' } | ||
|
||
function setEnv(newEnv) { | ||
console.log('setting env, env.FOO is', newEnv.FOO); | ||
env = newEnv; | ||
function setEnv (newEnv) { | ||
console.log('setting env, env.FOO is', newEnv.FOO) | ||
env = newEnv | ||
} | ||
|
||
export { setEnv, env }; | ||
export { setEnv, env } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
const o = { name5: 1, name6: 1 }; | ||
const o = { name5: 1, name6: 1 } | ||
const array = [1, 1] | ||
|
||
// Exporting declarations | ||
export let name1 = 1, name2 = 1/*, … */; // also var | ||
export const name3 = 1, name4 = 1/*, … */; // also var, let | ||
export function functionName() { return 1 } | ||
export class ClassName { getFoo() { return 1 } } | ||
export function* generatorFunctionName() { return 1 } | ||
export const { name5, name6: bar } = o; | ||
export const [ name7, name8 ] = array; | ||
export async function asyncFunctionName() { return 1 } | ||
export async function* asyncGeneratorFunctionName() { yield 1 } | ||
export const name1 = 1; export const name2 = 1/*, … */ // also var | ||
export const name3 = 1; export const name4 = 1/*, … */ // also var, let | ||
export function functionName () { return 1 } | ||
export class ClassName { getFoo () { return 1 } } | ||
export function * generatorFunctionName () { return 1 } | ||
export const { name5, name6: bar } = o | ||
export const [name7, name8] = array | ||
export async function asyncFunctionName () { return 1 } | ||
export async function * asyncGeneratorFunctionName () { yield 1 } | ||
export const arrowFunction = () => { | ||
return 1; | ||
return 1 | ||
} | ||
export const asyncArrowFunction = async () => { | ||
return 1; | ||
} | ||
return 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default class { getFoo() { return 1 } } | ||
export default class { getFoo () { return 1 } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default class ClassName { getFoo() { return 1 } } | ||
export default class ClassName { getFoo () { return 1 } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default [1] | ||
export default [1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default 1 | ||
export default 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default 'dog' | ||
export default 'dog' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default function () { return 1 } | ||
export default function () { return 1 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default function functionName() { return 1 } | ||
export default function functionName () { return 1 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default function* () { return 1 } | ||
export default function * () { return 1 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default function* generatorFunctionName() { return 1 } | ||
export default function * generatorFunctionName () { return 1 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default function () { | ||
return 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import fnDefaultExport from "./fn-default-export.mjs"; | ||
export default fnDefaultExport | ||
import fnDefaultExport from './fn-default-export.mjs' | ||
export default fnDefaultExport |
Oops, something went wrong.